Skip to main content

How to: Populate Item Collection Manually in Markup

trackbar_example_items_range

<dx:ASPxTrackBar ID="ASPxTrackBar1" runat="server" ScalePosition="Both" 
    AllowRangeSelection="True"
    PositionEnd="4" PositionStart="0" ValueType="System.String">
    <Items>
        <dx:TrackBarItem Text="Mon" ToolTip="Monday" Value="Monday"/>
        <dx:TrackBarItem Text="Tue" ToolTip="Tuesday" Value="Tuesday"/>
        <dx:TrackBarItem Text="Wed" ToolTip="Wednesday" Value="Wednesday"/>
        <dx:TrackBarItem Text="Thu" ToolTip="Thursday" Value="Thursday"/>
        <dx:TrackBarItem Text="Fri" ToolTip="Friday" Value="Friday"/>
        <dx:TrackBarItem Text="Sat" ToolTip="Saturday" Value="Saturday"/>
        <dx:TrackBarItem Text="Sun" ToolTip="Sunday" Value="Sunday"/>
    </Items>
</dx:ASPxTrackBar>