Sunday, March 18, 2007

I worked up an example that uses a ComboBox to display a Tree control. I have seen some other postings on this. I have to admit I have not testing this fully so please test it and tell me what you think.










Here is the treeExample and the TreeComboBox source code for you to use. The treeExample is based on the Adobe doc examples.

The custom tag returns treeSelectedItem instead of selectedItem. The concept is to just pass the tree control's selectedItem back instead of trying to modify the ComboBox dataProvider to do the right thing. It's a little hacky but it seems to work ok for me.