Wrapping panes in Ajax stops it binding to RadScheduler.

6 posts, 0 answers
  1. John
    John avatar
    15 posts
    Member since:
    Sep 2012

    Posted 28 Sep 2012 Link to this post


    I have the following code below At the top of the page I have a collapsible 
    panel
    within the panel is an ASP Accordion with a total of 5 ASP Accordion
    panes.


    When it runs it does a post back on the whole page and binds the info to the 
    Rad Scheduler which is great.


    But when I ajax the aspx page, first using ASP panels which didn't work
    then using telerik:radAjaxPanels it stops
    binding the appointments data to
    the Rad Scheduler which I can't work out.

    So when I remove the panels it works but when I add the panels it stops
    working.

    I want each pane to post back then for the rad scheduler to post back, 
    instead of the whole page doing a post back of both controls.

    Any Suggestions

    Thanks - John M 

    <asp:Accordion>
    <asp:AccordionPane ID="AccordionPane1" runat="server"">
                <Content>
                  <telerik:RadAjaxPanel ID="PanelStaff" runat="server" LoadingPanelID="RadAjaxLoadingPanel2">      
                       <asp:TextBox ID"StaffTextBox" runat="server"/>
                       <asp:Button ID="StaffSearchButton" runat="server"/>
                 </telerik:RadAjaxPanel>
               </Content>
    <asp:AccordionPane>
    </asp:AccordionPane>
      
    //I have 5 of these Accordion panes I want to have RadAjaxPanel in each Accordion pane.
      
    <telerik RadScriptManager ID="Radscriptmanager1" runat="server">
    <scripts>
    </scripts>
    </telerick:RadScriptManager>
      
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="PanelStaff" LoadingPanelID="RadAjaxLoadingPanel2" />
                        <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
      
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" HorizontalAlign="NotSet">
        <telerik:RadScheduler ID="RadScheduler1" >
        //Do Stuff
         </telerik:RadScheduler>
    </telerik:RadAjaxPanel>



  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 29 Sep 2012 Link to this post

    Hi John,

    Take a look at the RadAjaxManager documentation for more information on how to work with it: http://www.telerik.com/help/aspnet-ajax/ajax-ajaxmanager.html.

    If you are still having troubles could you paste here the whole mark up involved in the troubled behavior?

    Regards,
    Ivana
    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. John
    John avatar
    15 posts
    Member since:
    Sep 2012

    Posted 03 Oct 2012 Link to this post

    Got it fixed, all I had to do was wrap telerik:RadAjaxPanel ID="RadAjaxPanel1 with this.
    <asp:UpdatePanel ID="RadSchedulerUpdatePanel" runat="server">
     
    <ContentTemplate>
     
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" HorizontalAlign="NotSet">
     
     <telerik:RadScheduler ID="RadScheduler1" >
     
     //Do Stuff
     
     </telerik:RadScheduler>
     
    <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="320" Height="210"
    HideEvent="LeaveToolTip" Text="Loading..." RelativeTo="Element" OnAjaxUpdate="RadToolTipManager1_AjaxUpdate"
     OnClientBeforeShow="clientBeforeShow" AutoTooltipify="false">
    </telerik:RadToolTipManager>
     
    </telerik:RadAjaxPanel>
    </ContentTemplate>
    </asp:UpdatePanel>

    The problem now is that my RadToolTipManager has stop working I tried putting Update panels around the RadToolTipManager but no great success i then tried making the updatemode = conditional that didn't work.  I then made my other update panel conditional but that means my data is not bind to the radscheduler.

    The tooltip appears and the spinner appears then it crashes and produces the following error in the telerik.web.ui

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

    if(c[b].parentNode==d)
     
    Any Ideas.

    Cheers John













  4. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 08 Oct 2012 Link to this post

    Hello John,

    Having RadAjaxPanel nested inside an UpdatedPanel is not a recommended apprach to scenarios where server controls need to be ajaxified.  Would you please find a way to send a sample page/project where the troubles could be replicated so we will be able to inspect your scenario locally and hopefully provide you with a proper solution?

    Thank you.

    All the best,
    Ivana
    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.
  5. John
    John avatar
    15 posts
    Member since:
    Sep 2012

    Posted 08 Oct 2012 Link to this post

    Hi Ivana

    I got by problem fixed by commenting out the RadAjaxManager and using the javascript version for the tooltip so I must not have the RadAjaxManager configured right.

    My solution works but I would love to know how to do it property so I know in future and so I can change the tooltip back to the ajax version.

    Where do I send you my code so you can have a look at it.

    Cheers

    John Moore
  6. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 11 Oct 2012 Link to this post

    Hello John,

    I am glad you have the issues resolved.

    As for sending a sample project, you could open a support ticket where you are allowed to attach files.
    We will be glad to take a look at your project once you have it sent.

    Regards,
    Ivana
    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