This is a migrated thread and some comments may be shown as answers.

Multiple select problem in radCalendar

4 Answers 199 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Franco
Top achievements
Rank 1
Franco asked on 24 Mar 2011, 12:28 PM
Good morning.
    I have a problem with a radCalendar control with its MultipleSelect property set to false. Today is March 24th. If I programmatically select a new date (tomorrow), for example by clicking a button:

radCalendar1.SelectedDate = New Date(2011, 3, 25)

when I display the calendar, both days are now selected (this is my problem). If I click on another day, the behavior is ok: the control correctly selects the day and deselects all the others.

Thank you
Gianfranco Pesenato

4 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 26 Mar 2011, 05:49 PM
Hello Franco,

The date, Today has a different color than the other dates, this however does not mean that today is always selected, please check the selected date property and you will see that today is not the selected date.

Sadly, last time i checked, this behavior could be changed just by creating a new theme. You can create a new theme using the Visual Style Builder.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
Franco
Top achievements
Rank 1
answered on 28 Mar 2011, 08:18 AM
Good morning.
    With the property MultipleSelect set to false, I see the following behaviors (with the default style, but no matter what style is applied):

1. Start of the application: today is selected and its border is red. Ok. See Image1.png.
2. Click on Button1 (Image2.png, you see the code, too): now two days are selected, both with red border. Not ok, for me.
3. Image3.png is the desired behavior (I obtain it by clicking on the day): only one day is selected. The red border around today is good, anyway.

Thank you
Gianfranco Pesenato
0
Richard Slade
Top achievements
Rank 2
answered on 28 Mar 2011, 09:08 AM
Hello,

In my view, this is related to the issue in this forum post. I will be reporting this and will follow up for you.
Regards,
Richard
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 28 Mar 2011, 09:21 AM
Franco,

Perhaps I have misunderstood your issue. You can also set the focused date of the RadCalendar.

this.radCalendar1.FocusedDate = some date

Richard
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Franco
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Franco
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Share this question
or