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
Webkit + Sortable Columns + Toolbar Search
30/12/2010
19:49
Avatar
jckdnk111
Member
Members
Forum Posts: 9
Member Since:
02/09/2010
sp_UserOfflineSmall Offline

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:

$('#mylist').jqGrid({
    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'
});

10/01/2011
22:15
Avatar
jckdnk111
Member
Members
Forum Posts: 9
Member Since:
02/09/2010
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information