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
Select current value in a DropDown () when using inline edit
13/02/2014
14:44
Avatar
julianonunes
Member
Members
Forum Posts: 9
Member Since:
15/06/2012
sp_UserOfflineSmall Offline

I need to display the following structure:

Description | Area | NumericValue

Where Area will be a DropDownList (Html <select>) with numeric values and texts (Area = AreaId, AreaName). Currently, jqGrid requires me to create the Area column binded to AreaName column to select the right option in the Html Select. However, if my Html Select for some reason has more than one option with the same text, but different value, it will select the first option with the searched text, right?

How can I solve this? Bind the column to the AreaId, but display AreaName as text when the row is not being edited and select the current Area when the inline edit is available for this row?

21/05/2014
16:24
Avatar
julianonunes
Member
Members
Forum Posts: 9
Member Since:
15/06/2012
sp_UserOfflineSmall Offline

The problem still happens. Any help?

22/05/2014
14:55
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

When editing with select jqGrid search on on value and displayed text at the same time and if it find the first element it becomes selected.
I recommend you to make your text different in order to solve the problem.
Hint you can add spaces in order to differentiate the equal names.

Regards

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 496

Currently Online:
21 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