|
Do you have some optimization in your cell
renderer to not constantly re-assign the dataProvider to the combobox? Maybe
setValue is passing in null and you’re using an old value or something?
Remember that the renderers are cached, the only update to them once they are
instantiated is through setValue. Matt From: Hi All, This has been driving me nuts for hours
and I’m sure it’s something simple. I have a datagrid bound to a model. Two columns
within the grid have combo cell renderers in them. When the grid is populated,
everything is dandy. When a row is highlighted the combos appear allowing the
user to alter the values. No sweat. I have two buttons which add/remove items
in the datagrid. A user may select a row and ‘delete’ it. Behind
the scenes the model is updated via removeItemAt. Works. Now, if a user were to delete a row then
click ‘add’ for a new row…the combo’s appear but they
default to the value of the previous record that was deleted! (as if the
objects were not really destroyed) Adding a new row at any other time defaults
normally. Would appreciate any insights… Cheers, Stace
Yahoo! Groups Links
|
- RE: [flexcoders] Datagrid, Cellrenderer & Combos Matt Chotin
- RE: [flexcoders] Datagrid, Cellrenderer & Combos Stacy Young

