开发者

Get the jqGrid colModel

开发者 https://www.devze.com 2023-01-01 08:49 出处:网络
How can I get the entire colModel for a jqGrid element?I\'ve gone through the source code a bit and also played around with some tests, but nothing seems to return 开发者_Go百科the actual array.

How can I get the entire colModel for a jqGrid element? I've gone through the source code a bit and also played around with some tests, but nothing seems to return 开发者_Go百科the actual array.

Thanks.


You can use getGridParam - just pass the colModel option:

jQuery("#mygrid").jqGrid ('getGridParam', 'colModel');

You can look at the jqGrid docs for getGridParam for more information...


So I did figure it out. In the custom navigation button (onClickButton function), I just used :

this.p.colModel
0

精彩评论

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