Search code examples
jqueryjqgrid

How to amend the default jqGrid url parameters?


jqGrid append this to my url:

?_search=false&nd=1384254700817&rows=20&page=1&sidx=&sord=asc

How to disable that and not suffixing it to my URL?


Solution

  • You can use prmNames to rename or to remove parameters which jqGrid sends to the server. For example you can use

    prmNames: { search: null, nd: null, rows: null, page: null, sort: null, order: null }
    

    to remove ?_search=false&nd=1384254700817&rows=20&page=1&sidx=&sord=asc part of the URL.

    Alternatively you can use postData: "" to remove all parameters.