Something like this:
var ConsistPersonnel1Person:ClassFactory = new ClassFactory(AutoComplete);
var personArray:ArrayCollection = new ArrayCollection([
{data:1, label:"Conductor"}, {data:2, label:"Engineer"}, {data:3,
label:"Helper"}]);
var consistPersonnel1Person:Object =
accidentsModule.ConsistPersonnel1.columns[0];
ConsistPersonnel1Person.properties = {dataProvider : personArray, editable :
consistPersonnel1Person.editable};
consistPersonnel1Person.itemRenderer = ConsistPersonnel1Person;
Alex Harui <[EMAIL PROTECTED]> wrote:
How do you have it set up? rendererIsEditor or
itemEditor=ComboBox? Are the values for the column valid items in the CBs
dataprovider? Which version of Flex are you using?
---------------------------------
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of mark
goldin
Sent: Saturday, December 22, 2007 3:42 PM
To: [email protected]
Subject: RE: [flexcoders] Editable DataGird, Editable ComboBox as itemRenderer
Yes, it does work. But, when it is an editable control and DG is
editable too then I have a problem. As soon as I drop it down (nothing else)
its value gets replaced with an underlying value from the DG's datasource.
Alex Harui <[EMAIL PROTECTED]> wrote:
Combobox has been successfully used in an editable DG. What
problem are you having?
---------------------------------
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
markgoldin_2000
Sent: Saturday, December 22, 2007 3:01 PM
To: [email protected]
Subject: [flexcoders] Editable DataGird, Editable ComboBox as itemRenderer
It looks like DG.editable = true messing up combobox. I can easily
have
it false, but what if DG has more columns and they are plain text
fields? Custom renderers for these too?
Thanks