0

Problem is if select element has options with same "text" but different values, in edit form select element's selected value is set wrong. I think selected value of the element is constructed by cell's text, not value.

I tried like this,

....
formatter:'select', 
edittype:'select',
editoptions{value:"1:Blue;2:Red;3:Green;4:Blue"}
....

If selected item is value=1, when open edit form value=4 may be selected.

Vinoth Krishnan
  • 2,925
  • 6
  • 29
  • 34
AOZ
  • 196
  • 1
  • 8
  • Look at [the answer](http://stackoverflow.com/a/19601190/315935). – Oleg Oct 29 '13 at 15:43
  • @Oleg smart technique, it works! thank you.. – AOZ Oct 29 '13 at 16:02
  • possible duplicate of [jqgrid 4.5.4 formatter:select not working for duplicate values in combo box](http://stackoverflow.com/questions/19586427/jqgrid-4-5-4-formatterselect-not-working-for-duplicate-values-in-combo-box) – Bob2Chiv Nov 09 '13 at 18:07

0 Answers0