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

How can I reset the block of hours display in the timeline view after an ajax callback?

1 Answer 59 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Denis Buchwald
Top achievements
Rank 1
Denis Buchwald asked on 31 Dec 2010, 03:47 PM
Hi everyone,

I am using the scheduler in timeline view. One thing I have noticed and which I am having difficulty in trying to find a solution for is how to ensure the current block of hours displayed in the timeline view get reset when the scheduler is refreshed from an ajax callback. I should clarify that the intention of this callback is to reset the scheduler with a new date, but the start time for the hours displayed to always start at 8:00 a.m. Right now, I have no problems refreshing the scheduler to display a new date. What I have observed however, is that if I have navigated part way through the block of hours for a given selected date (say starting from 8 a.m. to 8 p.m. and I currently see 1pm to 4pm), when I refresh the entire scheduler instance with a callback, the new date is displayed, but the selected block of hours does not reset to 8 a.m. See attached visuals for reference.

How can I ensure that when the scheduler is completely refreshed (rebind()) with new resources and appointments that the selected block of hours restarts at the initial start time? On the callback I try to reset the start time using:

DispatchScheduler.TimelineView.StartTime = TimeSpan.Parse("08:00:00");

But this does not seem to work. The last block of hours to be displayed in the timeline view remain.

Any feedback would be appreciated.

Cheers,

Derek


1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 04 Jan 2011, 03:11 PM
Hi Derek,

Can you send me the code of your implementation? If you use RadAjaxManager, please make sure that RadAjaxManager updates RadScheduler in your ajax settings:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
     <AjaxSettings>
         <telerik:AjaxSetting AjaxControlID="RadScheduler1">
             <UpdatedControls>
                 <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
             </UpdatedControls>
         </telerik:AjaxSetting>
         <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
             <UpdatedControls>
                 <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
             </UpdatedControls>
         </telerik:AjaxSetting>
     </AjaxSettings>
 </telerik:RadAjaxManager>


Regards,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Scheduler
Asked by
Denis Buchwald
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or