开发者

Resize the JQGrid column at runtime

I need to resize the JQGrid column at runtime.

For eg: the column width for the column was 100px when it is loaded. I开发者_如何学Python need to change it to 200 afterwards.

Please help.


Unfortunately there is no way to do this using the jqGrid API. From the documentation:

As mentioned above the options in colModel can be get or set using the methods getColProp and setColProp. Below are options which can not be changed dynamically when the grid is constructed (If changed they do not have effect or will cause the grid errors). For some of these options there are methods available to change the value:

  • name
  • width
  • resizable
  • label (method avail.)
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜