绑定值更改时,kendo ui网格会松动选择 [英] kendo ui grid looses selection when bound value changes

查看:90
本文介绍了绑定值更改时,kendo ui网格会松动选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当绑定到列的值更改时,网格小部件似乎失去了选择.有人知道如何不松动选择吗? 此处的示例(选择一行,然后单击单击此处"): http://jsbin.com/oyuher/1/edit

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

推荐答案

是的,刷新了网格并且丢失了所有选择.在此代码中库中,您可以了解如何持久选择.

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

基本上有一个cookie被使用,但是由于您不重新加载页面,因此可以将其安全地存储到JavaScript变量中.

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.

这篇关于绑定值更改时,kendo ui网格会松动选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆