Completed
Last Updated: 07 Dec 2016 14:04 by ADMIN
ADMIN
Hristo
Created on: 27 Oct 2016 11:06
Category: Scheduler/Reminder
Type: Bug Report
1
FIX. RadScheduler - the SetColumnWidth method is not working in the SchedulerDayViewElement class
Broken in version R3 2016 (2016.3.913)

How to reproduce:
SchedulerDayViewElement dayViewElement = (SchedulerDayViewElement)this.radScheduler1.ViewElement;
dayViewElement.SetColumnWidth(1, 2);

Workaround:
IDictionary cachedSum = (IDictionary)dayViewElement.GetType().GetField("cachedSum", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(dayViewElement);
cachedSum.Clear();
IDictionary cachedColumnHorizontalOffset = (IDictionary)dayViewElement.GetType().GetField("cachedColumnHorizontalOffset", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(dayViewElement);
cachedColumnHorizontalOffset.Clear();

SchedulerDayViewElement dayViewElement = (SchedulerDayViewElement)this.radScheduler1.ViewElement;
dayViewElement.SetColumnWidth(1, 2);
0 comments