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
Grid with Select column bug on default Value
Tags: Select
16/07/2012
14:57
Avatar
ram2010
Member
Members
Forum Posts: 43
Member Since:
13/01/2010
sp_UserOfflineSmall 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.com

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information