This question is locked. New answers and comments are not allowed.
This situation is a little complicated.
I have a Master-Detail Grid (all bound through ajax calls). In the detail grid, I have an editortemplate that contains a dropdownlist.
When the dropdownlist is loaded, I try to access the data in the "onLoad" event shown below:
However, "ddl" is always undefined. I tried it with 'tDropDown' as well to no avail.
And finally, I tried the ScriptRegistrar at the bottom of the EditorTemplate, but it caused some kind of Javascript syntax error.
Is it even possible to do what I'm trying to do? Please help! TIA
I have a Master-Detail Grid (all bound through ajax calls). In the detail grid, I have an editortemplate that contains a dropdownlist.
When the dropdownlist is loaded, I try to access the data in the "onLoad" event shown below:
@{ var conferences = NCAAController.GetConferences().OrderBy(c => c.Name);}<script type="text/javascript"> function DropDownList_onLoad(e) { var ddl = $(this).data('tDropDownList'); }</script>@( Html.Telerik().DropDownList() .Name("DropDownList") .BindTo(new SelectList(conferences, "ConferenceId", "Abbreviation")) .ClientEvents(events => events.OnLoad("DropDownList_onLoad")) .Placeholder("Conference..."))However, "ddl" is always undefined. I tried it with 'tDropDown' as well to no avail.
And finally, I tried the ScriptRegistrar at the bottom of the EditorTemplate, but it caused some kind of Javascript syntax error.
Is it even possible to do what I'm trying to do? Please help! TIA