New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Customizing the Embedded Controls

The RadDatePicker control is a composite object, containing an embedded RadDateInput control (where the user can type values directly), a CalendarPopupButton and RadCalendar control. All of these embedded controls can be customized, just as you can customize a standalone RadDateInput or RadCalendar control.

To customize the embedded controls, simply locate the property for the embedded control in the Behavior section of the properties pane for the RadDatePicker control, expand it, and set its properties accordingly. The following table lists the properties for accessing the embedded controls:

Embedded controlParent controlProperty to access embedded control
RadDateInputRadDatePicker, RadDateTimePicker, RadTimePicker or RadMonthYearPickerDateInput
RadCalendarRadDatePicker or RadDateTimePickerCalendar
CalendarPopupButtonRadDatePicker or RadDateTimePickerDatePopupButton

Modifying the settings of a child control provides greater flexibility when configuring the look and feel of the RadDatePicker control – you have complete control over the skins and styles of the embedded controls:

ASPNET
<telerik:RadDatePicker
     ID="RadDatePicker1"
     runat="server">
     <DateInput Width="100%"></DateInput>
     <Calendar
         CellAlign="Center"
         CellVAlign="Middle"
         DayNameFormat="FirstLetter"
         FirstDayOfWeek="Default"
         MonthLayout="Layout_7columns_x_6rows"
         Orientation="RenderInRows"
         TitleAlign="Center"
         UseColumnHeadersAsSelectors="False"
         ShowRowHeaders="False">
    </Calendar>
    <DatePopupButton 
         CssClass="radPopupImage_Default" 
         BorderColor="#D0E1F2" 
         BorderStyle="Solid" 
         BorderWidth="1px" />
</telerik:RadDatePicker>

See Also

In this article
See Also
Not finding the help you need?
Contact Support