Completed
Last Updated: 15 Aug 2017 10:54 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 18 May 2017 06:57
Category: Scheduler/Reminder
Type: Bug Report
2
FIX. RadScheduler - allow the GroupSeparatorWidth property of the view to be set to 0
Color[] colors = new Color[]
{
    Color.LightBlue, Color.LightGreen, Color.LightYellow,
    Color.Red, Color.Orange, Color.Pink, Color.Purple, Color.Peru, Color.PowderBlue
};
string[] names = new string[]
{
    "Alan Smith", "Anne Dodsworth",
    "Boyan Mastoni", "Richard Duncan", "Maria Shnaider"
};
for (int i = 0; i < names.Length; i++)
{
    Resource resource = new Resource();
    resource.Id = new EventId(i);
    resource.Name = names[i];
    resource.Color = colors[i];
    this.radScheduler1.Resources.Add(resource);
}
this.radScheduler1.GroupType = GroupType.Resource;
this.radScheduler1.ActiveView.ResourcesPerView = 4;
this.radScheduler1.ActiveViewType = SchedulerViewType.Timeline;
this.radScheduler1.GetTimelineView().GroupSeparatorWidth = 0;

By default, the GroupSeparatorWidth property is set to 3. If you need to remove the resources separator, it is necessary to set the GroupSeparatorWidth property to 0 which is not possible at the moment with the public API.

Workaround:

FieldInfo fi = typeof(SchedulerView).GetField("groupSeparatorWidth", BindingFlags.Instance | BindingFlags.NonPublic);
fi.SetValue(this.radScheduler1.GetTimelineView(), 0);
0 comments