RadAjaxPaner - syntax error in auto generated javascript

4 posts, 0 answers
  1. Hildur
    Hildur avatar
    2 posts
    Member since:
    Feb 2013

    Posted 18 Feb 2013 Link to this post

    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



  2. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 21 Feb 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hildur
    Hildur avatar
    2 posts
    Member since:
    Feb 2013

    Posted 27 Mar 2013 Link to this post

    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?
  5. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 01 Apr 2013 Link to this post

    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.
Back to Top