views:

70

answers:

0

I'm not sure how to use trigger("reloadGrid") to refresh a JQGrid. I've tried many things but none of them will get trigger to fire. I have a grid I created through ASP.NET using the MVC dll from JQGrid.

Now I'm attempting to change the grid onload of the page.

$(document).ready(function() {
   $('#myGrid').setGridParam({rowNum: 20}).trigger("reloadGrid");
}

The trigger does nothing; however if I click the reload grid icon on the grid itself then my new rowNum setting is applied. How to I force the grid to auto-refresh (or more accurately "display") the settings I apply to it?