Resize the JQGrid column at runtime

倾然丶 夕夏残阳落幕 提交于 2020-01-03 10:58:30

问题


I need to resize the JQGrid column at runtime.

For eg: the column width for the column was 100px when it is loaded. I need to change it to 200 afterwards.

Please help.


回答1:


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.)


来源:https://stackoverflow.com/questions/2502947/resize-the-jqgrid-column-at-runtime

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!