RadDatePicker: Can RadDatePicker show the Calendar?

5 posts, 0 answers
  1. Jane
    Jane avatar
    16 posts
    Member since:
    Jun 2009

    Posted 15 Jan 2010 Link to this post

    Is there a way the RadDatePicker show the Calendar all the time?
    So we do not need to use toggle button to show calendar.
    thx!
    Jane 
  2. Jane
    Jane avatar
    16 posts
    Member since:
    Jun 2009

    Posted 15 Jan 2010 Link to this post

    From the example code, we found out there are two ways to do this:
    1) using following code will display calendar as default

     

         radDatePicker1.IsDropDownOpen = true;

     

    2) directly using the calendar control itself 

  3. UI for WPF is Visual Studio 2017 Ready
  4. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 18 Jan 2010 Link to this post

    Hi Jane,

     Maybe it will be best to use the RadCalendar control itself and if you need to display the selected value in a textbox you can bind the RadCalendar SelectedDate property to a RadMaskedTextbox or a Textbox.

    Hope that helps, if you need more help please let me know.

    Best wishes,
    Boyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Jane
    Jane avatar
    16 posts
    Member since:
    Jun 2009

    Posted 18 Jan 2010 Link to this post

    Hi Boyan,
    Thanks for your info. It is helpful to understand more about RadDatePicker and RadCalendar.
    We have not decided which way to go yet.
    One way: Default to show the Calendar and still let user has a choice to hide the calendar.
    Other way: Always show the calendar.
    We are glad that Telerik has provide flexible ways to let us achieve both ways.

    There are other questions coming up as we investigate more.
    Q1: Base on different language selection, the RadCalendar screen size will change base on each day's layout (Sunday through Saturday). Some are much wide than other day layout. see the attchment file. However, our main window are fix size.
    Is ther a way we can base on the calendar screen size to tell the calendar will it should be located so that calendar size will not cross the main window boundary ?

    Q2: Our applicaiton will use touch screen. It restricts the button/control at least has some distance from each other so that it will be easily for user to click on each button/control.
    Is there a way that we can set the minimum and maximum distances between each number on the  calendar control? 
    Thx!
    Jane
  6. Pana
    Admin
    Pana avatar
    748 posts

    Posted 20 Jan 2010 Link to this post

    Hello Jane,

    To set the minimum distance between the calendar's buttons you can set Margin for CalendarButtons inside the calendar.

    The letter could also be changed. I have modified the CalendarButton template using some converters that set the visibility to two different TextBlocks depending on the calendar's ActualWidth. It will need some tweaks to make it work in your project though.

    Check the attached project and try to resize the window. You will see the different headers that change based on the calendar's width.

    Regards,
    Panayot
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for WPF is Visual Studio 2017 Ready