Hello Zied,
here is a small piece of code, which I guess able to fulfill your
requirement
say you have put your custorm itemEditor in myEditors folder, and the
file name of your comboBox editor is myComboBoxEdior, then you will
mention it in the grid column something like this
<mx:DataGridColumn dataField="someDataField"
itemEditor="myEditors.myComboBoxEditor"
editorDataField="selectedLabel"
/>
put any value against editorDataField which you want to pass back to
the gridcolumn which then become the new value of the edited item.
It could be anything you define or component default properties.
Let me know if you face any issue.
Also I started a new series of item renderers and item editor on my
blog. I guess you may like to read them.
http://shaleenjain.blogspot.com/2009/02/item-renderes-item-editors.html
http://shaleenjain.blogspot.com/2009/02/item-renderes-part-1-introduction.html
Thanks,
Shaleen Jain
http://shaleenjain.blogspot.com
On Feb 10, 10:49 pm, zied <[email protected]> wrote:
> Hi,
> I am trying to create dynamically my dataGrid with actionScript which
> was created statically with MXML. I want to know how to create an
> itemEditor of a column with a custom object (ComboBox) that has as
> data provider="{outerDocument.getDS('dictionnary',
> '').lastResult.labelField.id}"
> getDS(dictionnary,subtype) returns an XML that populates my ComboBox.
> Thank you for helping
>
> Best Regards,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---