Forum
19:49
02/09/2010
I've discovered a bug with sortable columns and toolbar search.
When you have toolbar search enabled and a mix of selects and textboxes you can see that the toolbar search options do not properly follow the column header after reordering.
The bug only affects webkit-based browsers (i.e. chrome / safari) as far as I can tell (Opera and FF are working fine).
Reproducible in jqGrid 3.7.2 and 3.8.2.
Here is the code to reproduce:
datatype: 'local',
height: 250,
colNames:['ColA', 'ColB', 'ColC', 'ColD', 'ColE', 'ColF'],
colModel:[
{name:'cola', index:'cola', stype:'select', sorttype:'text', search:true, searchoptions:{searchhidden: true, value: 'Yes:Yes;No:No'}},
{name:'colb', index:'colb', sorttype:'text', search:true, searchoptions:{searchhidden: true}, editable:false},
{name:'colc', index:'colc', sorttype:'text', search:true, searchoptions:{searchhidden: true}, editable:false},
{name:'cold', index:'cold', sorttype:'text', search:true, searchoptions:{searchhidden: true}, editable:false},
{name:'cole', index:'cole', stype:'select', sorttype:'text', search:true, searchoptions:{searchhidden: true, value: 'Black:Black;White:White'}},
{name:'colf', index:'colf', stype:'select', sorttype:'text', search:true, searchoptions:{searchhidden: true, value: 'On:On;Off:Off'}}
],
rowNum: 10,
scroll: 1,
viewrecords: true,
sortable: true
});
$('#mylist').jqGrid('filterToolbar', {
stringResult: false,
searchOnEnter: false,
defaultSearch: 'eq'
});
22:15
02/09/2010
I've filed the bug here as well: https://github.com/tonytomov/jqGrid/issuesearch?state=open&q=webkit#issue/92
Is there anything else I need to do to get this accepted?
I've looked at the code myself but I'm not able to track down the cause of the issue. I believe the issue lies in the remapColumns function here: https://github.com/tonytomov/jqGrid/blob/master/js/grid.base.js#L2769
Any advice would be appreciated.
Most Users Ever Online: 715
Currently Online:
49 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