We have a Jqwidget grid in which when we need to call the grid we need to call the updatedatabound event to refresh the grid .
If a user clicks the refresh from page 3 to make sure the grid has to go to page 1 we used $(“#data”).jqxGrid(‘gotopage’, 0);
and also we need the grid to default sort by one column so the syntax for that is $(‘#data’).jqxGrid(‘sortby’, ‘DateLastReported’, ‘desc’);
But i need both the code to be combined in one line because our grid is server side implementation so for each command it goes to server side i dont want that to happen.
Please suggest.