This is a migrated thread and some comments may be shown as answers.

[Solved] Unable to get value of the property 'ajaxRequestWithTarget'

3 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kris
Top achievements
Rank 1
Kris asked on 18 Apr 2013, 09:36 PM
We have recently upgraded from version 2008 to 2012 and now it start showing following error: 

Microsoft JScript runtime error: Unable to get value of the property 'ajaxRequestWithTarget': object is null or undefined


it is happening at the following line :
<%= radajaxpanel.ClientID %>.ajaxRequestWithTarget('<%= radajaxpanel.UniqueID %>', eventArgs.get_item().get_value())

Is it because ajaxRequestWithTarget is no longer supported by radAjaxPanel ? Thanks in advance. 


Regards


3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 23 Apr 2013, 10:43 AM
Hi Kris,

The ajaxRequestWithTarget client method properly works for RadAjaxPanel however you should add a correct eventTarget and not the RadAjaxPanel itself. You could add a control which is added in the RadAjaxPanel as event target. If you need to perform Ajax through the RadAjaxPanel itself you could directly use ajaxRequest method. See the help topic below:
http://www.telerik.com/help/aspnet-ajax/ajax-client-side-api.html

Greetings,
Maria Ilieva
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
Kris
Top achievements
Rank 1
answered on 23 Apr 2013, 02:20 PM
Thanks for your reply, Actually I have an embedded ajaxpanel inside the outerajaxpanel. Can I add embedded radajaxpanel as the event target ? Something like : 

<%=OuterAjaxPanel.UniqueID %>.ajaxRequestWithTarget("<%=embeddedAjaxPanel.UniqueID %>", item.get_text()); 
0
Maria Ilieva
Telerik team
answered on 25 Apr 2013, 02:02 PM
Hi Khris,

Actually using nested AjaxPanel is not recommended approach and we suggest our customer to avid such scenarios. You could simply replace the inner AjaxPanel with regular asp Panel and use it as ajax target.

Kind regards,
Maria Ilieva
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.
Tags
Grid
Asked by
Kris
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Kris
Top achievements
Rank 1
Share this question
or