jqGrid dynamic columns

后端 未结 2 912
不知归路
不知归路 2021-01-16 18:57

I use jqGrid v4.4.5 and I want to create it with dynamic columns. It is filled by \"jqGridHandler.ashx\" file . I want send all information(column name,data,...) by JSON .

2条回答
  •  余生分开走
    2021-01-16 19:39

    Before your initialize the jqGrid you will need to have the information for your colNames and colModel properties of the jqGrid.

    So in short, you will request the information from your server, once you have successfully retrieved that information you can then build the jqGrid and then the jqGrid can go and fetch it's data.

    The following post has some example code on the client side: jqGrid and dynamic column binding

提交回复
热议问题