DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » Bugs » Scroll position getting lost when doing a next or previous day/week?

Scroll position getting lost when doing a next or previous day/week?

Hi Dan,

I have implemented on our control a day/week/month view which works perfect.

I have also implemented a previous and next function for each of the views. The problem I have is that when I do a refreshCallBack the ScrollPosition is lost and so starts from 00:00:00.

I have looked at the demo and the same thing happens there.
Tom - 2/5/2008 12:59:28 PM
In DayPilotCalendar, the scroll position doesn't change after refresh. It shows the same time of day.

In DayPilotScheduler, the scroll position is reset intentionally because keeping the current position doesn't make too much sense (e.g. for a month view, if you show February with scroll position on 6 Feb and jump to the next month there is no reason to skip the first five days).

The problem with the scheduler is rather that it can't set the scroll position in the Refresh event handler (any changes are ignored). I'm planning to add support for this scenario (i.e. changing scroll position during callback operations). See also http://forums.daypilot.org/Topic.aspx/250/hiding_times_that_are_non_business_days (my post from 1/23/2008 3:57:51 PM).
Dan Letecky - 2/6/2008 9:37:20 AM
Post reply