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

RadAjaxPaner - syntax error in auto generated javascript

3 Answers 66 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Hildur
Top achievements
Rank 1
Hildur asked on 18 Feb 2013, 03:54 PM
Hi.

I have a site that is structured as followed:

asp:Content
radA:RadAjaxPanel
asp:DropDownList
asp:DropDownList
asp:DropDownList ... When the selected index changes on DDL 1 the values in DDL 2 should also change but I get a syntax error in auto generated javascript that prevents asp events from happening.
The error is that there is a ' in stead of ' around ctl00_MainContentPlaceHolder_RadAjaxPanel2

Here is the auto generated javascript:
onchange="javascript:setTimeout('AjaxNS.AR(\'ctl00$MainContentPlaceHolder$m_ddlFyrirtaek\',\'\', 'ctl00_MainContentPlaceHolder_RadAjaxPanel2', event)', 0)"

Is this something RadAjaxPanel is causing?

Thanks



3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 21 Feb 2013, 09:32 AM
Hi Hildur,

Do you have RadAjaxManager on the page, too? Please note that using RadAjaxPanel simultaneously with RadAjaxManager or UpdatePanel ( or implementing multiple wrapped RadAjaxPanels ) is not a supported scenario and we highly recommend to avoid such implementation. Please either use just the manager to update your controls replacing the RadAjaxPanel with a regular asp:Panel, or use the RadAjaxPanel alone to wrap your page.

If this is not the case, please elaborate on your specific scenario and provide us the exact steps to reproduce the issue or open a support ticket to send us a sample runnable application demonstrating the erratic behavior. Thus, we will be able to further analyze the problem and provide a proper solution.

All the best,
Eyup
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
Hildur
Top achievements
Rank 1
answered on 27 Mar 2013, 03:50 PM
Here is the basic structure:

<asp:Content ...>
<asp:Panel ...>
<radA:RadAjaxPanel ID="radPanel1" ...> 
<radA:RadAjaxPaneID="radPanel2" ...>
<asp:DropDownList ...></asp:DropDownList>
<asp:DropDownList ...></asp:DropDownList>
<asp:DropDownList ...></asp:DropDownList> ...Content that is working as expected... </radA:RadAjaxPanel> <radA:RadAjaxPaneID="radPanel3" ...> ...Content that is working as expected...
</radA:RadAjaxPanel>
</radA:RadAjaxPanel>
</asp:Panel>
</asp:Content>

if I delete radPanel1 and change the radPanel2 to just asp:UpdatePanel the dropdowns works fine but then my radPanel3 does not work as it should do.

Is this structure supperted scenario?
0
Eyup
Telerik team
answered on 01 Apr 2013, 01:08 PM
Hi Hildur,

As stated in my previous post, implementing multiple wrapped RadAjaxPanels or UpdatePanels is not supported. You will need to use one of the following approaches instead:
  • use standard asp:Panels to construct your page structure and a single RadAjaxPanel OR UpdatePanel to wrap and ajaxify it
  • place a RadAjaxManager on your master page and a RadAjaxManagerProxy on your content page and configure the ajax settings according to the asp:Panels:
          http://www.telerik.com/help/aspnet-ajax/ajax-masterpage.html 

Hope this helps.

Regards,
Eyup
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
Ajax
Asked by
Hildur
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Hildur
Top achievements
Rank 1
Share this question
or