Wednesday, 15 January 2014

After setting loadonce to false multiple search for jqgrid , it is not loading the searched data. It is reloading the grid with all the data -



After setting loadonce to false multiple search for jqgrid , it is not loading the searched data. It is reloading the grid with all the data -

after setting loadonce false multiple search jqgrid , not loading searched data. reloading grid data.

the server should returns different data depend on whether utilize loadonce: true or default loadonce: false option. seems server part provide wrong info loadonce: false.

for understanding. jqgrid send server parameters. it's default names page, rows, sidx, sord, _search , additional parameters in case of filtering. in case of advanced searching parameter filters.

to implement correctly server part in case of usage loadonce: true 1 need utilize sidx , sord input parameters , returns all data need sorted corresponds values of sidx , sord parameters.

to implement correctly server part in case of usage loadonce: false need implement more sophisticated logic on server side. server should filter info based on filters parameter (if _search set), results of filtering should sorted sidx , sord , final results have divided on pages of size rows , page specified page parameter should returned server. one page of filtered info should returned server. in other words have implement filtering, sorting , paging of info on server side if don't want utilize loadonce: true.

the old answer provides illustration of such implementation on asp.net mvc.

jqgrid

No comments:

Post a Comment