开发者

How to track changes on jqGrid columns/layout/order?

开发者 https://www.devze.com 2022-12-17 19:17 出处:网络
I have a jqGrid that can be开发者_运维知识库 sorted by different columns both in ascending and descending order. Columns may be added or removed, and the order of the columns may be changed too. I nee

I have a jqGrid that can be开发者_运维知识库 sorted by different columns both in ascending and descending order. Columns may be added or removed, and the order of the columns may be changed too. I need to detect when any of these properties have changed, in order to save the users preference.

Is there a way to catch these events? I've been looking at the problem for a few days but cant seem to find a way to do it without a "Save" button.. but I dont really like that solution..

Thanks!


You can use the onSortCol event to detect if columns have been re-sorted.

Regarding adding/removing columns, event on selecting columns in jqGrid may be a good place to start.

0

精彩评论

暂无评论...
验证码 换一张
取 消