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

RadScheduler not working in XmlHttpPanel

1 Answer 9 Views
XmlHttpPanel
This is a migrated thread and some comments may be shown as answers.
David Cowan
Top achievements
Rank 1
David Cowan asked on 26 Sep 2013, 02:37 PM
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"
                    OnNavigationComplete="schedulerEmployeeCoverage_OnNavigationComplete"
                    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>
                </telerik:RadScheduler>
            </div>
        </div>
    </telerik:RadXmlHttpPanel>

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 01 Oct 2013, 08:30 AM
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.

Regards,
Slav
Telerik
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.
Tags
XmlHttpPanel
Asked by
David Cowan
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or