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:
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
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