I guess you are writing an inline itemEditor,
you may write it something like this
<mx:DataGridColoumn other properties ... .>
<mx:ItemEditor>
<mx:component>
<mx:Combobox dataprovider{outerDocument.getDS
('dictionnary',subtype'').} other properties... />
</mx:component>
</mx:ItemEditor>
</<mx:DataGridColumn>
if you are using your combobox editor frequently, I would suggest you
to make a component instead of using inline.
Thanks,
Shaleen Jain
http://shaleenjain.blogspot.com
On Feb 11, 12:33 am, Shaleen Jain <[email protected]> wrote:
> 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.htmlhttp://shaleenjain.blogspot.com/2009/02/item-renderes-part-1-introduc...
>
> Thanks,
> Shaleen Jainhttp://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
-~----------~----~----~----~------~----~------~--~---