Reload Jqgrid on button click

Reload Jqgrid

Call this function on the button click.

Javascript code:
Note:Replace tbSubscriptionGrid with your own Jqgrid id

function ReloadGrid()
{
$("#tbSubscriptionGrid").jqGrid("setGridParam", { datatype: "json" })
 .trigger("reloadGrid", [{ current: true }]);
}

Html code for button:

<input id="btnReload" onclick="ReloadGrid()" type="button" value="button" />

Reference this link for any more information:JqGrid don’i reload after click on the button

10 thoughts on “Reload Jqgrid on button click

Leave a comment