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

How to set/reset the display month

3 Answers 37 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Kjell asked on 08 Sep 2010, 10:59 PM
How can I programmatically set the current month?

By default the calender will load the current month, for example right now September.  If a user changes that to say August, I want to change it back to September after the take some action. Basically I just need to reset the cal, the selecteddate was easy but I must be missing the month setting.

3 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 10 Sep 2010, 09:18 AM
Hi Kjell,

You can define the selected month from the SelectedDate property too. You may consider using the DisplayDate property, in case you want to bring in to view a particular month . Let us know if this is not your case.

Kind regards,
Kaloyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kjell
Top achievements
Rank 1
answered on 10 Sep 2010, 06:41 PM
Thanks, displaydate let me set the month being displayed.   Now how do I actually just clear the selected date?

I can't set it to "" so I am just setting it to "datetime.today", but that is not the same as clearing it.  Keep in mind I am in single selection mode so I cant use selecteddates.clear().

0
Kaloyan
Telerik team
answered on 14 Sep 2010, 04:24 PM
Hi Kjell,

The SelectedDate is of Nullable<DateTime>  type. This means that you are able to set it a null value, that will clean the current value. Let us know if the tip is working in you use case.

Best wishes,
Kaloyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Calendar
Asked by
Kjell
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Kjell
Top achievements
Rank 1
Share this question
or