Hi.
I have this problem with calling the $find function (inside a web user controL). I have a situation where a change of dirent radcontrols (specifically a combobox) will set the selected index of a multipage control and other operations. And it works fine client side. But if i want to reflect changes made on serverside (for instance after a page load) I run into problems
The following type of code works when hooking up to the OnClientSelectedIndexChanged event of a RadCombobox:
NB! In the top Hierachy there is a MasterPage with a RadScriptManager. And this code is inside a Web User Control.
I have this problem with calling the $find function (inside a web user controL). I have a situation where a change of dirent radcontrols (specifically a combobox) will set the selected index of a multipage control and other operations. And it works fine client side. But if i want to reflect changes made on serverside (for instance after a page load) I run into problems
The following type of code works when hooking up to the OnClientSelectedIndexChanged event of a RadCombobox:
function
OnClientSelectedIndexChanged(sender, eventArgs) {
var index = sender.get_selectedIndex();
var multipage = $find("<%=RadMultiPageParameterValueKind.ClientID %>");
multipage.set_selectedIndex(index);
}
However if the same type of code is called from OnClientLoad event. The $find function returns null.NB! In the top Hierachy there is a MasterPage with a RadScriptManager. And this code is inside a Web User Control.