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_Related Related Topics sp_TopicIcon
Problem with search toolbar and name!=index in colmodel
06/06/2011
23:16
Avatar
r.cappa
Member
Members
Forum Posts: 25
Member Since:
06/06/2011
sp_UserOfflineSmall Offline

If I use the search toolbar in jqgrid 4.0.0, and I have a colModel with different name and index…

example:

colModel :[
          {name:'codRole', index:'COD_ROLE', width:55, editable:true},
          {name:'desRole', index:'DES_ROLE', width:90, editable:true}
        ],

(for example because I have a "codRole" json property but a COD_ROLE field to order by on DB)

…the search toolbar doesn't work: the "codRole" search parameter is not sent via GET to the server. If I change the index from COD_ROLE to codRole (so, name and index became equals), the search parameter is sent.

Any idea? Thanks.

14/06/2011
22:42
Avatar
r.cappa
Member
Members
Forum Posts: 25
Member Since:
06/06/2011
sp_UserOfflineSmall Offline

I've found the problem.... At line 3413:

nm = this.index || this.name;

should be...

nm = this.name || this.index;

Is that correct?

17/06/2011
21:38
Avatar
r.cappa
Member
Members
Forum Posts: 25
Member Since:
06/06/2011
sp_UserOfflineSmall Offline

Hi, it seems to be an unresolved bug also in 4.1.0. Is it planned to fix it in next versions? Thanks

18/06/2011
11:26
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

This is not a bug. First we try to use the index and then the name.

Regards

Tony

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.

18/06/2011
12:33
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Probably Tony the problem can exist in case of usage loadonce:true.

Regards
Oleg 

18/06/2011
16:21
Avatar
r.cappa
Member
Members
Forum Posts: 25
Member Since:
06/06/2011
sp_UserOfflineSmall Offline

tony said:

Hello,

This is not a bug. First we try to use the index and then the name.

Regards

Tony


Ok, but if both name and index are specified, nothing is sent to the server…

thanks

20/06/2011
09:56
Avatar
r.cappa
Member
Members
Forum Posts: 25
Member Since:
06/06/2011
sp_UserOfflineSmall Offline

r.cappa said:

tony said:

Hello,

This is not a bug. First we try to use the index and then the name.

Regards

Tony


Ok, but if both name and index are specified, nothing is sent to the server…

thanks


Sorry, only in 4.0.0 there was this problem, in 4.0.1 It works. Thanks.

20/06/2011
17:50
Avatar
Udo
Member
Members
Forum Posts: 5
Member Since:
03/05/2011
sp_UserOfflineSmall Offline

In 4.1.1 it is not working, if index value is totally ignored.

Looks like always the name is sent, no matter what value you set the index to.

I debuged into the grid, checked p.colModel: Index and name are different.

Checked p.postData and sidx has the value of name.

20/06/2011
18:18
Avatar
Udo
Member
Members
Forum Posts: 5
Member Since:
03/05/2011
sp_UserOfflineSmall Offline

Sorry, had a misconfiguration. I set the initial sort column (sortname option to grid) to the worng value.

Works like a charm now.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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