Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Filter Toolbar without loadonce:true?

I am using jqgrid, with filter toolbar(column) option...The total data is around 10,000...So it seems to be some delay in initial loading as the config is set to loadonce:true;

Any way to implement the filter column feature with loadonce:false ? Because the data loading delay is okay with loadonce:false. If I get a chance to add column filter with loadonce:false, this will work perfectly...

like image 381
George Avatar asked Aug 16 '26 01:08

George


1 Answers

If you has about 10,000 rows it is of course better to implement server side data paging, sorting and filtering. I recommend you to use filterToolbar with the parameter stringResult:true if you not already use it. In the case jqGrid will send to the server filters parameter in the same format like advanced searching as do. So you will need implement on the server side the method which use following input parameter from jqGrid:

  • sidx and sord parameters define the sort order of the data. The informations specify ORDER BY in the corresponding SELECT statement.
  • if _search parameter is true, then the next parameter filters gives additional information which construct the WHERE part of the corresponding SELECT statement.
  • page and rows parameters define which page of the data previously sorted and filtered should be returned.

The exact implementation is depend on the language and technology which you use on the server and of course which database server and which interface to the database you use.

like image 171
Oleg Avatar answered Aug 20 '26 17:08

Oleg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!