Hi,
First I apologize if the following issues are already replied.
I am using the WPF Calendar and I have the following issues:
- When I try to set the SelectableDateStart to a date prior to current Month (e.g 20 May 2011)
calendar starts again from current month (June in our case).
How is it possible to show calendar starting from the right month?
In my example I use the following dates:
SelectableDateStart: 20 May 2011
SelectableDateEnd: 26 October 2011
I also calculate the DisplayDateStart to be the first day of SelectableDateStart,
and DisplayDateEnd to be the last day of SelectableDateEnd.
- When I try to set SelectableDateStart to a date after the current month (e.g 8 July 2011)
I get an ArgumentOutOfRangeException:
Invalid DisplayDateStart value.
Parameter name: sender
Thanks in advance
6 Answers, 1 is accepted
I would suggest to set DisplayDate property of the RadCalendar. Also check out this help article which explains in details how to constrain the selection and visible days.
All the best,
Yana
the Telerik team
the SelectableDateEnd only set the Date not time. What should i do if i want to restrict some time as Selectable Time end?
Regards,
Veda
I'm afraid that RadDateTimePicker doesn't provide properties which limit the time. SelectableDateStart and SelectableDateEnd are inherited from RadCalendar, that's why they restrict only the date.
Greetings,
Yana
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
I think this is a bug. I expect to see years 2011 and 2012.
When I change DisplayDateStart to #1/2/2011# (one day later), the RadDateTImePicker shows years 2011 and 2012 in the calendar drop down which is what I want.
XAML
<telerik:RadDatePicker Name="FromPeriod" DateSelectionMode="Year" SelectedValue="{Binding SelectedSpanStartMonth,Mode=TwoWay}" />
code behind
Me.FromPeriod.Culture = New System.Globalization.CultureInfo("en-US")
Me.FromPeriod.Culture.DateTimeFormat.ShortDatePattern = "yyyy"
Me.FromPeriod.DisplayDateStart = #1/1/2011#
Me.FromPeriod.DisplayDateEnd = #12/1/2012#
We managed to reproduce the scenario following the instructions in your post.
It seems that there is an issue in the control and we logged it in our Public Issue Tracker. You can reach it here.
We are glad to add points to your account for reporting us this behaviour.
Greetings, Alek
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.