Completed
Last Updated: 02 Apr 2018 07:55 by Dimitar
ADMIN
Hristo
Created on: 29 Mar 2018 09:51
Category: Calendar
Type: Bug Report
0
FIX. RadCalendar - the WeekEnd property of the CalendarCellElements should be set to false for all cells when ZoomLevel of the header is different than Day
Workaround:
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
    public RadForm1()
    {
        InitializeComponent();

        this.radDateTimePicker1.DateTimePickerElement.Calendar.ElementRender += Calendar_ElementRender;
    }

    private void Calendar_ElementRender(object sender, RenderElementEventArgs e)
    {
        if (this.radDateTimePicker1.DateTimePickerElement.Calendar.ZoomLevel == ZoomLevel.Days)
        {
            return;
        }

        CalendarCellElement element = e.Element as CalendarCellElement;
        if (element != null)
        {
            element.WeekEnd = false;
        }
    }
}
0 comments