i am not using action script. I have mxml component. Is it possible
with mxml? if yes , could you please provide a small sample for it?
thanks in advance.

On Jun 22, 10:12 am, nikhil <[email protected]> wrote:
> Hi Ashok,
>
> In your ItemRenderer you can override the setter and getter function
> like....
>
> private var _data:Object;
>
> override public function set data(value:Object):void
>  {
>       if(value == null)
>                 return;
>      _data = value;
>
> }
>
>  override public function get data():Object
>    {
>         if (_data != null)
>                 return _data;
>         return null;
>    }
>
> and on your component you can add change event and on that change you
> can call a function like
>
> private function updateSelected():void
> {
>         _data.selectedId = cbo.selectedItem.itemId;
>
> }
>
> this will update your dataprovider in datagrid and you can use that.
>
> Thanks
> Nikhil
>
> On Jun 22, 2:29 am, AshokFx <[email protected]> wrote:
>
> > hi all,
>
> > I have one custom component containing only one combo box. I am
> > displaying this custom component as itemrenderer of Datagrid. But i
> > dont know once user select a value from drop down how to get that
> > value. Please suggest how to get value from the dropdown if dropdown
> > is present as component itemrenderer.
>
> > Thanks

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to