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: [email protected] [mailto:[email protected]] On Behalf Of Stacy Young
Sent: Wednesday, June 15, 2005 6:28 PM
To: [email protected]
Subject: [flexcoders] Datagrid, Cellrenderer & Combos

 

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

 

AVIS IMPORTANT

WARNING

Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme.

The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind.





Yahoo! Groups Links

Reply via email to