John Swenson
Top achievements
Rank 1
John Swenson
asked on 13 Oct 2011, 08:36 AM
Hello
I have a multi-line textbox ajaxified with a RadAjaxManager to be updated through an <asp:Button>
Everything worked fine until Web.UI Q2 SP1 (2011_2_915)
Now I got this javascript error when the Button is clicked (roughly translated):
"unable to read the property "id": object is null or not defined"
The VS debugger stops here:
In this particular statement:
The button postback event is never fired.
If I change the Button with a RadButton everything works fine, but this is not a feasible solution for me at the moment.
Thank you for your help
I have a multi-line textbox ajaxified with a RadAjaxManager to be updated through an <asp:Button>
Everything worked fine until Web.UI Q2 SP1 (2011_2_915)
Now I got this javascript error when the Button is clicked (roughly translated):
"unable to read the property "id": object is null or not defined"
The VS debugger stops here:
}if(this.Type=="Telerik.Web.UI.RadAjaxManager"){if(i.get_postBackElement()!=this.get_element()){var c=this._updatePanels.split(",");
if(Array.contains(c,i.get_postBackElement().id)){this._isRequestInProgress=true;
In this particular statement:
if(Array.contains(c,i.get_postBackElement().id))
The button postback event is never fired.
If I change the Button with a RadButton everything works fine, but this is not a feasible solution for me at the moment.
Thank you for your help
5 Answers, 1 is accepted
0
Hello John,
Could you paste your complete aspx and code-behind using the CODE FORMATTER tool of the ticket editor - this is not an expectd behavior.
Greetings, Tsvetoslav
the Telerik team
Could you paste your complete aspx and code-behind using the CODE FORMATTER tool of the ticket editor - this is not an expectd behavior.
Greetings, Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
John Swenson
Top achievements
Rank 1
answered on 14 Oct 2011, 07:44 AM
I've just submitted a support ticket for this problem, togheter with a sample application to reproduce the problem
Actually, with the sample application you can reproduce two problems I'm having: this one and one other discussed here:
http://www.telerik.com/community/forums/reporting/telerik-reporting/webviewer-javascript-error.aspx
The support ticket number is #473284
I'm sorry for having mixed the two problems but I'm in a hurry, really.
I think the problem is due to the structure of my app (nested masterpages), I think is better to review the sample app I made.
Best regards.
Actually, with the sample application you can reproduce two problems I'm having: this one and one other discussed here:
http://www.telerik.com/community/forums/reporting/telerik-reporting/webviewer-javascript-error.aspx
The support ticket number is #473284
I'm sorry for having mixed the two problems but I'm in a hurry, really.
I think the problem is due to the structure of my app (nested masterpages), I think is better to review the sample app I made.
Best regards.
0
Hi John,
You need to use a ClientIDMode different from static in order for the RadAjaxManager control to work properly. Please, modify your entry in the web.config and let us know of the result.
Regards, Tsvetoslav
the Telerik team
You need to use a ClientIDMode different from static in order for the RadAjaxManager control to work properly. Please, modify your entry in the web.config and let us know of the result.
Regards, Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
John Swenson
Top achievements
Rank 1
answered on 14 Oct 2011, 10:43 AM
Yes it worked for both of my problems (this one and the Reporting one).
Just one thing: although I don't mind changing this setting, as far I can tell you it has always been there, so it's possible that you changed somenthing in Web.UI that trigger this problem?
Anyway, problem solved. Thank you so much!
P.S. Can you confirm that I can still set ClientIDMode="Static" on a per-control basis and still have the RadAjaxManager works properly, please?
Just one thing: although I don't mind changing this setting, as far I can tell you it has always been there, so it's possible that you changed somenthing in Web.UI that trigger this problem?
Anyway, problem solved. Thank you so much!
P.S. Can you confirm that I can still set ClientIDMode="Static" on a per-control basis and still have the RadAjaxManager works properly, please?
0
Accepted
Hello John,
I tested the RadAjaxManager with older versions of the Telerik.Web.UI.dll as early as the beginning of 2010 and the same exception is thrown. You can use ClientIDMode=static but just make sure that the control which is triggerring the ajax request (the one specified in the AjaxControlID property of the RadAjaxManager) has its ControlIDMode set to a value different from Static.
Glad to hear you are back on track with your implementation.
Best wishes, Tsvetoslav
the Telerik team
I tested the RadAjaxManager with older versions of the Telerik.Web.UI.dll as early as the beginning of 2010 and the same exception is thrown. You can use ClientIDMode=static but just make sure that the control which is triggerring the ajax request (the one specified in the AjaxControlID property of the RadAjaxManager) has its ControlIDMode set to a value different from Static.
Glad to hear you are back on track with your implementation.
Best wishes, Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now