Completed
Last Updated: 23 Feb 2021 08:57 by ADMIN
Release R1 2021 SP2

To reproduce: 
1. Add RadCalendar/or RadDateTimePicker/ and the MaxValue of calendar control to DateTime.MaxValue.
2. Click on the header and an exception is thrown: System.ArgumentOutOfRangeException: 'The added or subtracted value results in an un-representable DateTime.
Parameter name: months'

public RadForm1()
{
    InitializeComponent();

    RadDateTimePickerElement.MaximumDateTime = DateTime.MaxValue;
    this.radDateTimePicker1.MaxDate = DateTime.MaxValue;
    this.radDateTimePicker1.Value = this.radDateTimePicker1.MaxDate;
    RadDateTimePickerCalendar calendarBehavior = this.radDateTimePicker1.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar;
    calendarBehavior.Calendar.RangeMaxDate = this.radDateTimePicker1.MaxDate;
}

 

Workaround:
To work around this issue we can stop showing this pop-up when one of the three last months of the MaxDate.Year is selected in the RadCalendar ViewChanged event:

private void Calendar_ViewChanged(object sender, EventArgs e)
{
    RadDateTimePickerCalendar calendarBehavior = this.radDateTimePicker1.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar;
    DateTime calendarDate = calendarBehavior.Calendar.CalendarElement.View.ViewStartDate;
    if (calendarDate.Year == this.radDateTimePicker1.MaxDate.Year &&
        calendarDate.Month >= 10)
    {
        calendarBehavior.Calendar.HeaderNavigationMode = HeaderNavigationMode.None;
    }
    else
    {
        calendarBehavior.Calendar.HeaderNavigationMode = HeaderNavigationMode.Popup;
    }
}

Unplanned
Last Updated: 25 Dec 2020 13:39 by ADMIN
Currently, when AllowMultipleSelect= true the dragging selection is always enabled. 
Unplanned
Last Updated: 30 Oct 2020 10:20 by ADMIN

Please refer to the attached sample project and run it with RadForm2.

Note: the issue is not reproduced consistently.

Completed
Last Updated: 20 Aug 2019 13:20 by ADMIN
Release R3 2019

By default, if you need to format the cells in RadCalendar, the ElementRender event is an appropriate solution. However, it doesn't process the row/column header cell elements illustrated in the attached screenshot.

Workaround:

            MonthViewElement mve = (MonthViewElement)this.radCalendar1.CalendarElement.CalendarVisualElement;
            foreach (CalendarCellElement cell in mve.TableElement.Children)
            {
                if (cell.Row == 0)
                {
                    cell.DrawFill = true;
                    cell.BackColor = Color.Red;
                } 
            } 

Completed
Last Updated: 05 Jun 2018 08:20 by Dimitar
How to reproduce:
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
    public RadForm1()
    {
        InitializeComponent();


        ThemeResolutionService.ApplicationThemeName = "VisualStudio2012Light";

        this.radCalendar1.ShowRowHeaders = true;
        this.radCalendar1.AllowMultipleView = true;
        this.radCalendar1.MultiViewRows = 2;
        this.radCalendar1.MultiViewColumns = 2;
        this.radCalendar1.ShowFooter = true;
        this.radCalendar1.ShowOtherMonthsDays = false;
    }
}

Workaround: 
protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);

    MultiMonthViewElement viewElement = this.radCalendar1.CalendarElement.CalendarVisualElement as MultiMonthViewElement;
    CalendarMultiMonthViewTableElement tableElement = viewElement.FindDescendant<CalendarMultiMonthViewTableElement>() as CalendarMultiMonthViewTableElement;
    if (tableElement == null)
    {
        return;
    }

    foreach (RadElement child in tableElement.Children)
    {
        MonthViewElement monthViewElement = child as MonthViewElement;
        if (monthViewElement == null)
        {
            continue;
        }


        monthViewElement.FindDescendant<CalendarCellElement>().DrawBorder = false;
    }
}
Completed
Last Updated: 02 Apr 2018 07:55 by Dimitar
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;
        }
    }
}
Completed
Last Updated: 25 Jan 2018 10:59 by ADMIN
ADMIN
Created by: Jack
Comments: 33
Category: Calendar
Type: Feature Request
30
Presently RadCalendar does not support Persian calendar style.

Completed
Last Updated: 15 Aug 2017 11:03 by ADMIN
To reproduce: use the following code snippet:

            radCalendar1.AllowMultipleSelect = true;
            radCalendar1.ShowRowHeaders = true;
            radCalendar1.AllowRowHeaderSelectors = true;
 If you select several cells, they all are selected. Then, click the header row cell. You will notice that the cells from this row are selected but all previously selected cells are cleared. The attached gif file illustrates the behavior. 

Workaround: use the MouseDown event to store the currently selected cells and then on MouseUp restore the missing selection:

public class MyCalendar : RadCalendar
{
    List<DateTime> selectedDays = new List<DateTime>();

    protected override void OnMouseDown(MouseEventArgs e)
    {
        CalendarCellElement cell = this.ElementTree.GetElementAtPoint(e.Location) as CalendarCellElement;
        if (cell != null)
        {
            bool isHeader = (bool)cell.GetValue(CalendarCellElement.IsHeaderCellProperty);
            if (isHeader)
            {
                selectedDays.Clear();
                foreach (DateTime date in this.SelectedDates)
                {
                    selectedDays.Add(date);
                }
            }
        }
        base.OnMouseDown(e);
    }

    protected override void OnMouseUp(MouseEventArgs e)
    {
        base.OnMouseUp(e);
        foreach (DateTime date in selectedDays)
        {
            if (!this.SelectedDates.Contains(date))
            {
                this.SelectedDates.Add(date);
            }
        }
    }

    public override string ThemeClassName  
    { 
        get 
        { 
            return typeof(RadCalendar).FullName;  
        }
    }
}
Unplanned
Last Updated: 15 Aug 2017 10:08 by ADMIN
Currently, you can use reflection in order to access the properties of the fast navigation popup. 

Workaround: 
this.radCalendar1.HeaderNavigationMode = Telerik.WinControls.UI.HeaderNavigationMode.Popup;

CalendarNavigationElement a = this.radCalendar1.CalendarElement.CalendarNavigationElement;
FieldInfo fi = typeof(CalendarNavigationElement).GetField("dropDown", BindingFlags.NonPublic | BindingFlags.Instance);
RadDateTimePickerDropDown dropDown = (RadDateTimePickerDropDown)fi.GetValue(a);
dropDown.PopupOpening += new RadPopupOpeningEventHandler(dropDown_PopupOpening);
Unplanned
Last Updated: 15 Aug 2017 10:08 by ADMIN
Unplanned
Last Updated: 15 Aug 2017 10:02 by ADMIN
ADMIN
Created by: Stefan
Comments: 0
Category: Calendar
Type: Feature Request
0

			
Unplanned
Last Updated: 15 Aug 2017 09:45 by ADMIN
To reproduce:
- Add RadCalendar to a blank form and set its AllowMultipleSelect property to true.
- Select a date and deselect it right after that. You will notice that the background is not changed.
- The cell is actually deselected but it appears as selected since it is the focused cell and the styles are equal.

Workaround: Change the style for the focused state, which will allow the user to distinguish between focused and selected cells.
Unplanned
Last Updated: 15 Aug 2017 09:33 by ADMIN
When you click on a Navigation Button with the mouse in RadCalendar and hold the button down, then it scrolls automatically to the next/previous views very fast. Same behavior should be supported by the Fast Navigation Buttons.
Unplanned
Last Updated: 15 Aug 2017 09:21 by ADMIN
HeaderWidth and HeaderHeight properties should be made RadProperties and should be declared at RadCalendarElement. This will allow our users to set these properties in theme.
Unplanned
Last Updated: 29 Mar 2016 10:30 by ADMIN
To reproduce:
public Form1()
{
    InitializeComponent();
    this.radCalendar1.RangeMinDate = new DateTime(2014, 1, 1);
    this.radCalendar1.RangeMaxDate = new DateTime(2017, 7, 17);
    this.radCalendar1.FocusedDate = new DateTime(2014, 2, 4);
    this.radCalendar1.AllowFastNavigation = true;
    this.radCalendar1.FastNavigationStep = 1; 
    this.radCalendar1.AllowMultipleView = true;
    this.radCalendar1.MultiViewColumns = 4;
    this.radCalendar1.MultiViewRows = 3;
    this.radCalendar1.CurrentViewRow = 0;  
    this.radCalendar1.CurrentViewColumn = 1;  
}

The user expects when fast navigating forward, the view to be shifted with one year = 12 months. However, each next forward fast navigation moves with 11 months. 

Workaround: 

            this.radCalendar1.CurrentViewRow = 0;  
            this.radCalendar1.CurrentViewColumn = 0;
            this.radCalendar1.CalendarElement.PreviousButton.PerformClick();
Unplanned
Last Updated: 29 Mar 2016 10:29 by ADMIN
The following line does not move MultiMonthView to the specific date:  

radCalendar1.CalendarElement.View.ViewStartDate = new DateTime(DateTime.Now.Year, 1, 1);


Workaround: use RadCalendar's FocusedDate property instead:

radCalendar1.FocusedDate = new DateTime(2014, 1, 1);
Unplanned
Last Updated: 29 Mar 2016 10:28 by ADMIN
To reproduce: 

1. When set the Disabled to true  of special day has not effect
this.radCalendar1.SpecialDays.Add(new RadCalendarDay(new DateTime(2014,7, 15)));
this.radCalendar1.SpecialDays[0].Disabled = true;

2. When set the Selected and Selectable to false, the special day is still can select and highlight
this.radCalendar1.SpecialDays[0].Selected = false;
this.radCalendar1.SpecialDays[0].Selectable = false;
Unplanned
Last Updated: 29 Mar 2016 10:27 by ADMIN
Meanwhile, you can workaround this by resetting the property every time you change the number of months that RadCalendar displays. This is shown in the next code snippet:

private void radPageViewPage2_ClientSizeChanged(object sender, EventArgs e)
{
    int numViews = this.radPageViewPage2.Size.Height / 240 + 1;
    radCalendar1.MultiViewRows = numViews;
    radCalendar1.ShowFastNavigationButtons = true;
    radCalendar1.ShowFastNavigationButtons = false;
}
Unplanned
Last Updated: 29 Mar 2016 10:24 by ADMIN
When a RadRichTextBox control is added as a child to RadCalendar, the Space and Enter key input is stolen by the calendar.

Workaround is available here: http://www.telerik.com/community/forums/getting-visible-dates-from-radcalendar
Completed
Last Updated: 23 Sep 2015 08:01 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: Calendar
Type: Feature Request
7

			
1 2 3