kendo ui grid looses selection when bound value changes

╄→尐↘猪︶ㄣ 提交于 2019-12-14 02:41:04

问题


It seems like the grid widget looses selection when a value that a column is bound to is changed. Does anyone know how to not loose the selection? Example here (select a row then click "click here"): http://jsbin.com/oyuher/1/edit


回答1:


Yes, the Grid is refreshed and any selection is lost. In this code library you can get the idea how to persist the selection.

Basically there is a cookie which is used but since you do not reload the page you can simply safe it into a JavaScript variable.



来源:https://stackoverflow.com/questions/13845452/kendo-ui-grid-looses-selection-when-bound-value-changes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!