Forum


21:38

30/12/2010

The URL by default is sending the below query parameters to the server:
Question #1 - In the 1st key/value I assume "sord" should be "sort", is this a bug, will it be changed in future release,
Question #2 - In the 3rd key/value pair, what is the key value "nd", how is it/should it be used.
Question #3 - In the 5th key/value pair, what is the key value "sidx" how is it/should it be used.
Question #4 - In the last key/value pair, what does the key value "_search" mean how is it/should it be used.
****** Start Query Params ************
-----------------------------
KEY: sord
VALUE: [asc]
-----------------------------
KEY: page
VALUE: [2]
-----------------------------
KEY: nd
VALUE: [1293736392673]
-----------------------------
KEY: jsoncallback
VALUE: [jsonp1293736371754]
-----------------------------
KEY: sidx
VALUE: [id]
-----------------------------
KEY: rows
VALUE: [10]
-----------------------------
KEY: _search
VALUE: [false]
****** End Query Params ************
Thank much for any responses.
00:58

10/08/2009

Hello dgh1,
the usage of parameter sord is not a bug. I suppose that sord should be read as "sort direction". The parameter can be either asc or desc.
Parameter sord will be used together with sidx parameter which I read as "sort index". Sort index is the name from the 'index' column of the corresponding column by which the grid should be sorted. If jqGrid column has no 'index' property defined, the 'name' property from colModel column will be used.
Next parameter nd I read as "new date". It contains timestamp (new Date().getTime()) and are used to prevent caching of AJAX requests in Internet Explorer. It has close meaning to cache:false parameter of jQuery.ajax. In my opinion the parameter should be added only for HTTP GET requests, but it is added in case of filling of jqGrid per POST also. If you include prmNames: { nd:null} then the nd parameter will be not added (read this for more information).
Parameter _search is very easy. I suppose it was introduced for server technologies like PHP or ASP where you query server parameters manually. If _search is true, then other parameters searchField, searchOper and searchString or filters will be used and you should query there. In many cases you can query directly the parameters searchField or filters and ignore _search.
Best regards
Oleg
Most Users Ever Online: 715
Currently Online:
41 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66