New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Getting Started with the SegmentedControl
Updated on May 20, 2026
This guide demonstrates how to get up and running with the Telerik WebForms SegmentedControl.
Create the SegmentedControl
To create the SegmentedControl in the markup, add a telerik:RadSegmentedControl element to the page and configure its Items, SelectedValue, LayoutMode, and Size properties.
ASP.NET
<telerik:RadSegmentedControl ID="RadSegmentedControl1" runat="server" SelectedValue="week">
<Items>
<telerik:SegmentedControlItem Text="Day" Value="day" Icon="calendar" />
<telerik:SegmentedControlItem Text="Week" Value="week" Icon="clock" />
<telerik:SegmentedControlItem Text="Month" Value="month" Icon="calendar-date" />
</Items>
</telerik:RadSegmentedControl>
To create the SegmentedControl on the server, create a new instance of the RadSegmentedControl object, set its properties, and add it to the Controls collection of another control (e.g. PlaceHolder1).
ASP.NET
<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
C#
protected void Page_Init(object sender, EventArgs e)
{
RadSegmentedControl segmentedControl = new RadSegmentedControl()
{
ID = "RadSegmentedControl1",
SelectedValue = "week",
LayoutMode = SegmentedControlLayoutMode.Compact,
Size = SegmentedControlSize.Medium
};
segmentedControl.Items.Add(new SegmentedControlItem() { Text = "Day", Value = "day", Icon = "calendar" });
segmentedControl.Items.Add(new SegmentedControlItem() { Text = "Week", Value = "week", Icon = "clock" });
segmentedControl.Items.Add(new SegmentedControlItem() { Text = "Month", Value = "month", Icon = "calendar-date" });
PlaceHolder1.Controls.Add(segmentedControl);
}