I have a problem my grid
The problem is my grid is not a loadonce so the toggle search is not working well,but when I change the loadonce:true,it works perfectly.
NOw my question is,how can I stop the toogle search not to request on server?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are only two possibility: either jqGrid hold local data and it can do sorting, paging and filtering (searching) locally or the server have to do this. jqGrid hold the data locally in internal options
dataand_indexonly if thedatatypeis not'json'and not'xml'or if the optionloadonce: trueare used.So if you use
datatype: 'json'ordatatype: 'xml'and you still need to have local searching you have to useloadone: true. In the case the internal optionsdataand_indexwill be filled and thedatatypewill be changed to'local'after the first loading of data from the server. If you will need later to reload the data from the server you can reset thedatatypeto its original value (‘json’ or ‘xml’) with respect ofsetGridParam(see here for example) and trigger “reloadGrid” event (see here).