Home › Forums › Bugs › Problem with search toolbar and name!=index in colmodel
If I use the search toolbar in jqgrid 4.0.0, and I have a colModel with different name and index…
example:
colModel :[
I've found the problem…. At line 3413:
nm = this.index || this.name;
should be…
nm = this.name || this.index;
Is that correct?
Hi, it seems to be an unresolved bug also in 4.1.0. Is it planned to fix it in next versions? Thanks
Hello,
This is not a bug. First we try to use the index and then the name.
Regards
Tony
Probably Tony the problem can exist in case of usage loadonce:true.
RegardsOleg
tony said: Hello, This is not a bug. First we try to use the index and then the name. Regards Tony
tony said:
Ok, but if both name and index are specified, nothing is sent to the server…
thanks
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
r.cappa said:
Sorry, only in 4.0.0 there was this problem, in 4.0.1 It works. Thanks.
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.
Sorry, had a misconfiguration. I set the initial sort column (sortname option to grid) to the worng value.
Works like a charm now.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS