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
dropdown in inline edit: id unique but duplicate in labels
28/12/2010
03:30
Avatar
srobert2
europe
Member
Members
Forum Posts: 3
Member Since:
28/12/2010
sp_UserOfflineSmall Offline

Hello All,

I 'm trying to fix an issue on which you could help me:

I have a grid with inline edit.... working well so far

the problem is that the value option of editoptions has Items with the same label (the id is unique)

For some reason when I pick up an Item from the drop down, jq grid is going to always pickup the first Item. In the exemple in below if I choose Item 11:Id that's in fact 1:Id that is going to be written in db

 editoptions: {
value: "1:Id;2:Entity;3:Column;4:Id instance;6:Value;11:Id;12:Entity;13:Sql name;14:Name;15:Custom;16:Enumeration;17:Key;18:Link;19:Rank;20:Linked Entity;21:Column Width;22:Type;23:Icon;24:Can be null;25:Entity linked filter;30:Id;31:Name;32:Appl. Type;33:DB Type;40:Id;41:Sql name;42:Name;43:Has attachments;44:Has data set;45:Enumeration;46:Code;47:Label;48:Default;49:Icon;50:Id;51:Name;52:Main domain;53:Controller;54:Parent;55:Rank;56:Sort;60:Id;61:Code;62:Data set;63:Id;64:Code;65:Name;66:First name;67:Last name;68:Company;69:Type;70:Relation;71:Data set;72:Id;73:Internal name;74:Name;75:Main entity;80:Id;81:Entity;82:Grid name;83:Grid displayed name;84:Minimum rank;85:Maximum rank;86:Has context menu;87:Edit;88:Pager;89:Width;90:Height (or 'auto');91:Auto width;92:Collapse;93:Lines per page;94:Sortable;95:Count records;96:Pager position;97:Counter position;98:Id;99:Page entity;100:Page icon;101:Type;102:Name;103:Page title;104:Id;105:Icon name;106:File;107:Id;108:Page;109:Name;110:Type;111:Sort;112:Columns;113:Width;114:Parent;115:Column;116:Id;117:Page;118:Section;119:Type;120:Entity column;121:Grid;122:Label;123:Sort;124:Column;125:Grid filter;130:Application message;131:Code;132:Severity;133:Area;134:Message text;135:Id;136:User;137:Active;138:Filter;139:Page;140:Id;141:Entity;142:Instanciated entity;143:User;144:Type;145:Filter label;146:Active;1001:Id;1002:Code;1003:Label;1004:Description;1005:Geographic zone;1006:Icon;1007:Data Set;1008:Custom"
}

I'm runing in version 3.8.1 , jquery 1.4.2
28/12/2010
13:07
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello srobert2,

I can imagine that jqGrid has problem with select (dropdown) having the same texts and different ids. Tony can answer on your bug request.

I want only explain you that your example has not much sense from the user point of view in my opinion. I don't understand how the user be able to choose the corret "Id" or "Icon" item if he see multiple items? Moreover a dropdown list having about 100 unsorted items is terrible in my opinion. I recommend you to redesign the corresponding column of grid. It can be that you try to display information which can be better devide in two columns: category and subcategory. I am not sure what kind of information the grid should display. Nevertheless my personal opinion is that you should not use the editoptions with value from your question.

Best regards
Oleg

29/12/2010
11:47
Avatar
srobert2
europe
Member
Members
Forum Posts: 3
Member Since:
28/12/2010
sp_UserOfflineSmall Offline

Hi Oleg,

Thanks for your answer.

Indeed I have more details concerning my Issue. It looks like the problem comes from the definition of the selected Item.

[Image Can Not Be Found][Image Can Not Be Found][Image Can Not Be Found]The initial situation is the following:

(this is an other example)

in DB a record has 101 as a value that correspond to 101:Type the editoptions

When I edit the corresponding line in jqgrid, the selected Item in the select drop down is in fact 22:Type.

If I save the modifications (even if no new item is choosen from the dropDown) 22 will be saved in DB.

As far as I can see this is a dangerous bug.

Regards,

Stephane.

[Image Can Not Be Found]

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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