WPF Calendar SelectableDateStart issues

7 posts, 0 answers
  1. Fanis
    Fanis avatar
    4 posts
    Member since:
    Jun 2011

    Posted 24 Jun 2011 Link to this post


    First I apologize if the following issues are already replied.

    I am using the WPF Calendar and I have the following issues:

    1. 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.

    1.  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

  2. Yana
    Yana avatar
    4554 posts

    Posted 30 Jun 2011 Link to this post

    Hello Fanis,

    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,
    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Fanis
    Fanis avatar
    4 posts
    Member since:
    Jun 2011

    Posted 30 Jun 2011 Link to this post

    Thanks a lot.. It works fine now..
  5. Veda
    Veda avatar
    18 posts
    Member since:
    May 2011

    Posted 08 Jul 2011 Link to this post

    Is any property available for Constraining Selection and Visibility of Time in Telerik DateTime Picker.
    the SelectableDateEnd only set the Date not time. What should i do if i want to restrict some time as Selectable Time end?

  6. Yana
    Yana avatar
    4554 posts

    Posted 08 Jul 2011 Link to this post

    Hi 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.

    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!

  7. Mark
    Mark avatar
    15 posts
    Member since:
    Apr 2012

    Posted 14 Jan 2013 Link to this post

    When I set DisplayDateStart=#1/1/2011# and DisplayDateEnd=#12/1/2012 in code behind or view model, the RadDateTImePicker shows years 2010, 2011 and 2012 in the calendar drop down.

    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. 


    <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#
  8. Alek
    Alek avatar
    78 posts

    Posted 15 Jan 2013 Link to this post

    Hi Mark,

    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.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
UI for WPF is Visual Studio 2017 Ready