0

While the caveat here should be "if it ain't broke, don't fix it", I want to ask this question anyway.

I have a jqGrid loading data from a web service returning JSON data. my datatype is set as "json", and all is working well. I needed to disable the "deselect" of a row after a sort was implemented. I found the deselectAfterSort option in the wiki documentation, set the value to false, and all was working as expected. However, the documentation says "Applicable only when we use datatype : local." (wiki documentation here).

So this option worked as expected, but Im not using a local data type. Am I doing this correctly? I want to make sure whatever I do is supported and following proper implementation standards. Thanks in advance!

4

1 回答 1

0

我想您使用的loadonce: true选项datatype从初始"json"值更改为"local"第一次从服务器加载数据后。因此,该选项deselectAfterSort: true稍后将在对最初从服务器加载的数据进行本地排序期间起作用。

于 2013-09-25T15:18:58.900 回答