Ansd
Ansd

Reputation: 1865

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?

Upvotes: 0

Views: 172

Answers (1)

Oleg
Oleg

Reputation: 221997

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.

Upvotes: 1

Related Questions