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

RadDatePicker MaxDate?

3 Answers 163 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 2
Matthew asked on 06 Feb 2009, 02:42 PM
There is a field in the RadCalendar for MaxDate / MinDate but I do not see a field like this in your documentation for RadDatePicker.  Is there a way to achieve this functionality?

3 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 10 Feb 2009, 03:23 PM
Hi Matthew,

MaxDate and MinDate are the latest and earliest representable date and they are constants shared between the Calendar & DatePicker.

If you would like to restrict the selectable range or the browsing (display) range of the Calendar or DatePicker, you can use the

SelectableDateStart/End and DisplayDateStart/End properties. An example can be seen here:

http://demos.telerik.com/silverlight/#Calendar/SelectionRange

If you would like greater control over the selection, you can have a look at this example, using DataTemplates:

http://demos.telerik.com/silverlight/#Calendar/SelectionConstraints

Hopefully this is what you need,

All the best,

Miroslav
the Telerik team

 


Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Adam
Top achievements
Rank 1
answered on 09 Aug 2010, 05:34 AM
The second link is broken. Is there an example of how to use the template selector to restrict the selectable dates?

I've noticed the DayTemplateSelector is deprecated.
0
George
Telerik team
answered on 11 Aug 2010, 11:37 AM
Hi Adam,

Thank you for contacting us.

You could refer to this topic in our forums - http://www.telerik.com/community/forums/silverlight/datepicker/customize-raddatepicker-silverlight.aspx

Please do not hesitate to contact us if you require any further information.

Sincerely yours,
George
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
DatePicker
Asked by
Matthew
Top achievements
Rank 2
Answers by
Miroslav
Telerik team
Adam
Top achievements
Rank 1
George
Telerik team
Share this question
or