12.3. Date Picker

The DatePicker control renders a text box where users can enter the selected date and a button that shows a calendar for a visual date selection (this calendar is created on the client). The following examples will show you the functionality of DatePicker.

12.3.1. Implementing Date Ranges and the ShowButton Property

The properties MinDate and MaxDate are exposed for the DatePicker in the same way they are for the Calendar. They provide a means to define a range of allowed dates. The ShowButton property defines whether the calendar button will be shown. Listing 12-5 shows you how to implement a date range and to display or hide the ShowButton. See the end result in Figure 12-5.

Example 12.5. DatePicker Date Range and Show Button ...

Get Pro Telerik ASP.NET and Silverlight Controls: Master Telerik Controls for Advanced ASP.NET and Silverlight Projects now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.