PDA

View Full Version : RowEditor with Combobox



alexdemers
30 Nov 2009, 7:45 AM
Hi,

I have been struggling with the RowEditor plugin for quite some time now. I have a grid with the RowEditor plugin to it. On my grid, I have [ combobox, combobox, textfield, textfield, datefield, checkbox]. When I double click the row to edit it, every field gets correctly populated with the exception that comboboxes have the correct text selected in the field but it's greyed out and doesn't have an "id" assigned to it like the store that's attached to it does. My guess is that it's setting only the text on the combobox. Also, when I hit "Update" I want to return the ID behind the selected text of the comboboxes.

So my question is, how can I have my RowEditor to correctly selected the assigned value in the store automatically on edit? I looked into the "beforeedit" event to set the combobox to the corresponding store element but it doesn't seem to get the different values of each cell in that selected row.

I don't know if I'm being clear or what. Here's a screenshot.