Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Sunday, May 13, 2012
Get the jqGrid colModel
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 the actual array.
You can use getGridParam - just pass the colModel option:
ReplyDeletejQuery("#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 :
ReplyDeletethis.p.colModel