I have some issues with clientside scripting of the combobox. All the getters and setters donĀ“t work.
Definition:
var combo_route = $get('<%= DropDown_Routes.ClientID %>');
combo_route.set_text(title);
Produces an "is not a function error" (it is not undefined! "ctl00_navisub_DropDown_Routes"). Am I missing something here?
Best regards,
Elamr
8 Answers, 1 is accepted
I suggest that you try to get the instance of RadComboBox, like:
var combo_route = $find('<%= DropDown_Routes.ClientID %>');
Hope this helps.
Regards,
Rosi
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Unfortunately that does not work either.
I think this behavior might be because I am accessing this thing from an external script that is loaded via "script src".
So what I am doing in the page itself is, is to look for the clientid of that control:
var dropdown_routes = $get('<%= DropDown_Routes.ClientID %>');
That works just fine but I canĀ“t access all the telerik custom clientside methods from the external script although the variable itself is declared and filled.
How do I integrate the clientside functions in external scripts? My guess is that this is what 90% of developers use frequently.
Jeff
function
OnClientSelectedIndexChangingDDL(sender, eventArgs)
{
var combo = sender;
var name = combo.get_id();
alert(name);
....
......
clearddl("Usercontrol1_RadComboBox1");
.......
function
clearddl(objSelect)
{
var combo = $find(objSelect);
combo.get_items().clear();
combo.set_text("");
}
function
OnClientItemsRequestingDDLFascia(sender, eventArgs)
{
var context = eventArgs.get_context();
context["RuleSet"] = "DDLFascia";
context["param1"] = document.getElementById("Usercontrol1_RadComboBox1_Input").value;
}
Hi Elmar,
Please find attached a project illustrating how to achieve your goal. Click the button in the Default.aspx page and test it. If this does not help you, please open a ticket and send us a project illustrating the problem to test it locally.
Regards,
Rosi
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thanks for providing this support anyway!
Please give us some more details on your implementation.
All the best,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
The Problem is this , when i Attached a function in OnclienSelectedIndexChanged Prperty.. It Works Fine.. But If i used to find it outside the function , it gives me error ...
Thanks