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
Sort by clicking on column header does not work
05/07/2011
18:20
Avatar
gseroul
Member
Members
Forum Posts: 15
Member Since:
19/02/2010
sp_UserOfflineSmall Offline

Hi,

I have just upgrade from jQgrid 3.8.2 to 4.1.1

I have lots of grid in my web site. Before clicking on a column it was sending an ajax request to the server with different parameter set :

 'sord' // get the direction        

'sidx' // get index row - i.e. user click to sort        

'rows' // get how many rows we want to have into the grid 

'page' // get the requested page 

For param sidx in previous version I have the column name => for my column 'login' I have  sidx = login in http request.

Now with the new version I have sidx = list_login   =>  all my column names have this 'list_' string before.  Of course to work it need a refactory of all my code.

I wonder if I missed something because I was not able to find any reference in the changelog to this 'list_' add to column name in case of clicking a column header.

If someone can tell me if I am doing something wrong or if I have to change all my code everywhere  ;-(

Here is an example of one grid :

        {name:'login', width:100, sorttype:'text', editable:true, editrules:{required:true}},           
{name:'group', width:150, sorttype:'text'}, 
{name:'institute', width:150, sorttype:'text'}, 

Clicking on column header now give this in the http request :

sidx = list_login
or  sidx = list_group
or sidx = list_institute 

Thanks

Gael

05/07/2011
18:45
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

06/07/2011
17:33
Avatar
gseroul
Member
Members
Forum Posts: 15
Member Since:
19/02/2010
sp_UserOfflineSmall Offline

Hi Tony,

Thanks a lot for your quick answer. I have modified my column def like this :

{name:'login', index:'login', width:100, sorttype:'text', editable:true, editrules:{required:true}},            
{name:'group', index:'group', width:150, sorttype:'text'}, 
{name:'institute', index:'institute', width:150, sorttype:'text'}, 

and it works like a charm....

Thanks again for your wonderful work on this amazing lib

Gael

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
47 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