Forum
November 2nd, 2014
A
A
A
The forums are currently locked and only available for read only access
Topic RSS
Related Topics
Grid with Select column bug on default Value
Tags: Select
16/07/2012
14:57
14:57
ram2010
Member
Members
Forum Posts: 43
Member Since:
13/01/2010
13/01/2010
Offline
Using JQGRID 4.2.0 there is a bug when setting the default selected value when a dropdown list is loaded in a grid. The reason for this is that in jQuery.jqGrid.js it uses the value to set selected in the dropdown list and not the text. Replace if (a.inArray(a.trim(a(this).text()), n) > -1 || a.inArray(a.trim(a(this).val()), n) > -1) this.selected = "selected" with: if (a.inArray(a.trim(a(this).text()), n) > -1){ Where the case "select" in the createEl function This is a bug as the default value to be selected should ALWAYS be the text which appears in the grid before the row is selected. Hopfully this can be fixed in future jquery grid releases. |
Forum Timezone: Europe/Sofia
Most Users Ever Online: 715
Currently Online:
73 Guest(s)
Currently Browsing this Page:
2 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