Hello Telerik Team,
I know that this kind of topic has been solved many times, but I couldn't have found solution in my case.
I use inline editing form in the radgrid. I have radcombobox control defined inside of the radgrid <EditItemTemplate> section. The combobox has set property EnableLoadOnDemand=true.
What I need to achieve is to set focus on the same combobox when requested item is selected. Now, when user selects some item from the combobox list it's updated properly, but focus
in not set on it. I found something similar in this thread: http://www.telerik.com/community/forums/aspnet-ajax/combobox/set-focus-and-cursor-at-the-end-of-text-in-radcombobox.aspx
I use this script in the protected void cmb_Artikel_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e):
StringBuilder script = new StringBuilder();
script.Append("var combo2 = $find('" + combo.ClientID + "');");
script.Append("combo2.selectText(combo2.get_text().length, combo2.get_text().length); });");
RadScriptManager.RegisterStartupScript(Page, Page.GetType(), "comboCursor", script.ToString(), true);
The script runs properly, the combobox gets focus after user selects some item. For this steps everything looks good and correct, the problem will appear when user clicks on update button in the edited row.
Then the error message is appeared: Microsoft JScript runtime error: 'null' is null or not an object
Detailed info about this error is in the attachment.
I think that it will be related to Sys.Application.add_load
from the above script section. Maybe there must be append some script for unload section when ajax request is completed ?
Please help me to solve this issues.