Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
parameters sent to server
30/12/2010
21:38
Avatar
dgh1
New Member
Members
Forum Posts: 1
Member Since:
30/12/2010
sp_UserOfflineSmall Offline

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.

31/12/2010
00:58
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information