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 the loadon to the wrong multiple search for jqgrid, it is not loading the data searched for all of this data With reloading the grid.

The server depends on different data that you loadonce : True or use the default loadonce: false option. It appears that your server provides incorrect data for the part loadonce: incorrect .

To understand. JqGrid sends some parameters to the server. These default names are pages , rows , sidx , sord , _search and more In the case of filtering, in case of advanced parameters, your parameter search filter .

For the implementation of the server correctly, in the case of the use, loadonce: true one needs to use only sidx and The input parameter and returns all the data which need to be sorted now sidx and the sord parameters.

To implement the server part correctly in the case of the use, loadonce: false requires you to apply a more sophisticated argument on the server side. The server should filter the data based on the filter parameter (if the _search is set), filtering the results of the sidx and sord and the final result should be split on the pages of the rows and the page specified by the page parameter should be returned to the server. Therefore filtered data should only be returned by the One Page server. In other words, you need to implement filtering, sorting and paging on the server side if you do not want to use the loadonce: true .

ASP.Net provides an example of this kind of implementation on MVC.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -