How to assign the data dynamically to jqGrid?

后端 未结 1 942
没有蜡笔的小新
没有蜡笔的小新 2021-02-10 09:04

Here is my code for creating the jqGrid

$(\"#ptDataGrid\").jqGrid({
                    datatype: \'local\',
                    data: arrSpecData,
                      


        
1条回答
  •  鱼传尺愫
    2021-02-10 09:40

    You can first set new data with respect of setGridParam and then call refreshIndex method (see the answer) to update the internally used _index parameter.

    UPDATED: Click on the button "Change data" on the demo to verify that the approach work.

    0 讨论(0)
提交回复
热议问题