I appreciate your idea of not to duplicate the code base.
So you have to create a custom mxml component for the tree and write
the function inside the component.

Use that component in place of your Tree in the main application. Your
job is done.

Anand

On Oct 14, 2:58 pm, "dhileepen chakravarthy" <[EMAIL PROTECTED]>
wrote:
> Thank you pareek
> Its working, but i have one more problem now.
>
> i have three datagrid, i dont like to wrote each function for a tree.
> in a two function to control the expand and collapse is it possible.
>
> TIA
> Dhileepen
>
> On Tue, Oct 14, 2008 at 9:44 AM, Pareek <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > have a look at examples here u will find what u want...
>
> >http://blog.flexexamples.com/tag/tree/
>
> > What i think is you will have to call a function on creationComplete
> > event of your flex application and then something like this
>
> >  tree.openItems= dataproviderForTreeControl
>
> > this is depicted in one of the examples at the link provided above..
>
> > Thanks
> > Pareek
>
> > On Oct 13, 6:49 pm, "dhileepen chakravarthy" <[EMAIL PROTECTED]>
> > wrote:
> > > Hi All,
> > > I am using Tree structure.
> > > I need  a function to exapand all the tree nodes when loading the tree
> > > nodes.
> > > Give me anyone for suitable example
>
> > > TIA
> > > Dhileepen
--~--~---------~--~----~------------~-------~--~----~
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