How to refresh the data in a jqGrid?

后端 未结 4 1842
心在旅途
心在旅途 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:18

    Try this to reload jqGrid with new data

    jQuery("#grid").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid');
    

提交回复
热议问题