First off let me say that I LOVE the treeview in the combo trick!
There is one thing I would like to do that I have quite figured out though.
In the OnClientDropDownOpenedHandler, you typically write come something like:
var tree = sender.get_items().getItem(0).findControl(treeid);
Where treeid is whatever the id is of the tree in the combo.
This is great if you have only one combox/treeview control on the. I'm trying to figure out how to genericise the function.
Right now I have to hard code the control ids in a switch as shown below.
What I'd really like to do is to be able to get the id of the tree somehow at runtime so I don't have to have this switch. Is this possible?
Something along the lines of
I know this doesn't exist but is there some way to get the same effect?
THanks ... Ed