PDA

View Full Version : [CLOSED] ComboBox state



jchau
Apr 08, 2013, 3:17 PM
In 1.x and earlier versions of 2.x, comboboxes consists of two input fields. The normal input one that contains the text value with id = comboboxid and a hidden one that contains id value with id = comboboxid_value. Looks like this was recently changed so the hidden one is called _comboboxid_state and contains an serialized array. We have many areas of the app where we are creating comboboxes dynamically and then submitting them back. We pull their values manually out of the request object. Do you guys have an object to represent the state so I can deserialize the hidden value?

Vladimir
Apr 08, 2013, 4:09 PM
Hi,

You can use SimpleSubmit=true to submit value only or use the following method to parse selected items of combo


Ext.Net.ComboBoxBase.ParseSelectedItems(state)

That method return List<ListItem>

jchau
Apr 08, 2013, 4:11 PM
Thanks, exactly what I was looking for.