New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Server-side Programming Overview
You can configure the settings of RadDateRangePicker and create its items in the code-behind via the Server-Side API of the control.
RadDateRangePicker Public Properties and Methods
For a list with the server-side properties and methods of the control, see the Server-Side API of the RadDateRangePicker class. You can also find it in the IntelliSense in Visual Studio.
Information about the Server-side APIs of the embedded controls you can find in the dedicated articles:
Create a RadDateRangePicker in the Code-behind:
ASP.NET
<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
C#
protected void Page_Init(object sender, EventArgs e)
{
var dateRangePicker = new RadDateRangePicker();
dateRangePicker.ID = "RadDateRangePicker1";
dateRangePicker.Skin = "Silk";
dateRangePicker.Calendar.MultiViewColumns = 2;
dateRangePicker.Calendar.MultiViewRows = 3;
dateRangePicker.StartDatePicker.DatePopupButton.Visible = true;
dateRangePicker.EndDatePicker.DatePopupButton.Visible = true;
dateRangePicker.RangeSelectionStartDate = DateTime.Now;
dateRangePicker.RangeSelectionEndDate = DateTime.Now.AddDays(14);
PlaceHolder1.Controls.Add(dateRangePicker);
}