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?

Coderama
  • 11,050
  • 12
  • 44
  • 58

1 Answers1

3

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 How to filter the jqGrid data NOT using the built in search/filter box for details.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798