RadScheduler not working in XmlHttpPanel

2 posts, 0 answers
  1. David Cowan
    David Cowan avatar
    22 posts
    Member since:
    Nov 2009

    Posted 26 Sep 2013 Link to this post

    I am trying to show a RadScheduler in an XmlHttpPanel and it is not displaying the appointments.  I call DataBind after the DataSource is set.  If I add a call to rebind I get a partial view of the appointments but its just the outline.  I tried setting RegisterWithScriptManager=False and I then get javascript errors.

    <telerik:RadXmlHttpPanel ID="radXmlHttpPanel" runat="server" OnServiceRequest="radXmlHttpPanel_OnServiceRequest" RenderMode="Block" EnableClientScriptEvaluation="true" LoadingPanelID="loadingPanelSupervisorHome" >
            <div id="listEmployeeCoverages" runat="server">
                <div id="employeeCoveragesSchedule">
                    <telerik:RadScheduler ID="schedulerEmployeeCoverage" runat="server" SelectedView="TimelineView" ReadOnly="True" OverflowBehavior="Expand"
                        OnNavigationCommand="schedulerEmployeeCoverage_OnNavigationCommand" OnAppointmentDataBound="schedulerEmployeeCoverage_OnAppointmentDataBound"
                        DataKeyField="Detail.Key" DataSubjectField="Subject" DataStartField="Detail.StartDateTime" DataEndField="Detail.StopDateTime">
                        <TimelineView UserSelectable="False" GroupBy="Employee" GroupingDirection="Vertical" ShowInsertArea="False" SlotDuration="01:00:00" ShowDateHeaders="true" ColumnHeaderDateFormat="htt"></TimelineView>
                        <DayView UserSelectable="False"></DayView>
                        <WeekView UserSelectable="False"></WeekView>
                        <MonthView UserSelectable="False"></MonthView>
  2. Slav
    Slav avatar
    1359 posts

    Posted 01 Oct 2013 Link to this post

    Hi David,

    Please check this help article on the differences between RadXmlHttpPanel and RadAjaxPanel. Note that when performing a request, the RadXmlHttpPanel uses either a callback or web service, however, in both cases a only a part of the page lifecycle is executed, as explained here, and the databinding of RadScheduler could be skipped during callback due to this reason.

    If this is not the case, please send a simple, fully runnable sample that isolates the problem, so that I can check the exact approach for databinding the scheduler and how is the RadXmlHttpPanel is used. This will allow me to inspect the setup and provide a more to the point answer.

    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 the blog feed now.
Back to Top