Hi,
I have the need to make a combobox witth a treeview in it, and have looked at the example given in the live samples.
However the samples use a hardcoded id when referencing the combobox in the NodeClicking handler.
function nodeClicking(sender, args)
{
var comboBox = $find('RadComboBox1');
var node = args.get_node()
comboBox.set_text(node.get_text());
comboBox.hideDropDown();
}
This is not usable for a real world control as one might want multiple such controls on the same page.
So I need to be able to send the nodeClicking handler the id of the combobox, so that I can register the javascript on the page once.
Thanks in advance,
Thomas Scheelhardt
I have the need to make a combobox witth a treeview in it, and have looked at the example given in the live samples.
However the samples use a hardcoded id when referencing the combobox in the NodeClicking handler.
function nodeClicking(sender, args)
{
var comboBox = $find('RadComboBox1');
var node = args.get_node()
comboBox.set_text(node.get_text());
comboBox.hideDropDown();
}
This is not usable for a real world control as one might want multiple such controls on the same page.
So I need to be able to send the nodeClicking handler the id of the combobox, so that I can register the javascript on the page once.
Thanks in advance,
Thomas Scheelhardt