How to refresh the data in a jqGrid?

后端 未结 4 1839
心在旅途
心在旅途 2020-12-14 05:53

I have been trying to get a grid to be updated from the datasource when a button is pushed.

So I have in the click event something like this:

$(\'#g         


        
4条回答
  •  攒了一身酷
    2020-12-14 06:15

    This worked for me.

    jQuery('#grid').jqGrid('clearGridData');
    jQuery('#grid').jqGrid('setGridParam', {data: dataToLoad});
    jQuery('#grid').trigger('reloadGrid');
    

提交回复
热议问题