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

RadDatePicker: Can RadDatePicker show the Calendar?

4 Answers 99 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Jane
Top achievements
Rank 1
Jane asked on 15 Jan 2010, 11:15 PM
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 

4 Answers, 1 is accepted

Sort by
0
Jane
Top achievements
Rank 1
answered on 16 Jan 2010, 12:11 AM
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 

0
Boyan
Telerik team
answered on 18 Jan 2010, 11:32 AM
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.
0
Jane
Top achievements
Rank 1
answered on 18 Jan 2010, 07:23 PM
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
0
Pana
Telerik team
answered on 20 Jan 2010, 02:46 PM
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.
Tags
DatePicker
Asked by
Jane
Top achievements
Rank 1
Answers by
Jane
Top achievements
Rank 1
Boyan
Telerik team
Pana
Telerik team
Share this question
or