Completed
Last Updated: 09 Jul 2014 13:58 by ADMIN
ADMIN
Dimitar
Created on: 07 Jul 2014 10:25
Category: Scheduler/Reminder
Type: Bug Report
1
FIX. RadScheduler - The Vertical Scrollbar value is not updated correctly when AutoScrollToWorkTime is set to true.
To reproduce scroll to the working hours in the ActiveViewChanged event:
void radScheduler1_ActiveViewChanged(object sender, Telerik.WinControls.UI.SchedulerViewChangedEventArgs e)
{
    if (e.OldView.ViewType == SchedulerViewType.Month && (e.NewView.ViewType == SchedulerViewType.Day || e.NewView.ViewType == SchedulerViewType.Week))
    {
        SchedulerDayViewBase dayView = radScheduler1.ActiveView as SchedulerDayViewBase;
        dayView.AutoScrollToWorkTime = true;
    }
}

Workaround:
public class MyScheduler : RadScheduler
{
    public override string ThemeClassName
    {
        get
        {
            return typeof(RadScheduler).FullName;
        }
    }

    protected override void SetValuesToViewElement(SchedulerVisualElement viewElement, ViewData viewData)
    {
        if (viewElement is SchedulerDayViewElement)
        {
            return;
        }

        base.SetValuesToViewElement(viewElement, viewData);
    }
}
0 comments