views:

55

answers:

1

I am using jqGrid and I don't want the grid to autoload.

I only want the grid to load once a user enters filter criteria.

Any advice?

+1  A: 

It seems the same question as I answerd before. You can define jqGrid with datatype:'local' parameter and after the user set filter criteria you can change it ot datatype:'json' with respect of

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

By the way you can send the filter criterias to the server with respect of postData parameter of jqGrid. See http://stackoverflow.com/questions/2928371/how-to-filter-the-jqgrid-data-not-using-the-built-in-search-filter-box/2928819#2928819 for details.

Oleg
Exactly what I was looking for. Thank you!
Coderama