How to refresh the data in a jqGrid?

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

    var newdata= //You call Ajax peticion//
    
    $("#idGrid").clearGridData();
    
    $("#idGrid").jqGrid('setGridParam', {data:newdata)});
    $("#idGrid").trigger("reloadGrid");
    

    in event update data table

提交回复
热议问题