Hi,

I have a Tree that has a change handler linked to it.  When a user
clicks on a different node it triggers the handler and my 2 graphs are
updated.

<b>My Problem:<b/>
When my application loads, the data source for the 2 graphs is empty
so nothing is displayed.  This is due to the fact that my tree change
handler is actually parsing the xml (data provider to the tree) to
produce the data for the graphs.  On the onLoad or initialization of
my application the tree change handler isn't called so my data
provider for my graphs is null.

How can I set the selected tree item to be the first node, expand it
to show it's children, and then call my change handler so it will set
up the data providers for my graphs?

My guess would be something like this:

myTree.selectedIndex = 0; //set the selected item 
myTree.expandItem(myTree.selectedItem, true); //expand the item
...How would I make it fire the change event?

Any help would be appreciated.

thanks,

phil



Reply via email to