aspnet-devexpress-dot-web-dot-aspxtrackbar-78a5f7be.md
Gets the collection of items in the ASPxTrackBar control.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public TrackBarItemCollection Items { get; }
Public ReadOnly Property Items As TrackBarItemCollection
| Type | Description |
|---|---|
| TrackBarItemCollection |
A TrackBarItemCollection instance specifying the collection of the editor’s items.
|
This property is a wrapper of the TrackBarProperties.Items property.
This example demonstrates how to manually define items in the ASPxTrackBar’s Items collection and enable item range selection.
The ASPxTrackBar.ValueType property should be specified if you want to use items with non-decimal values.
The ASPxTrackBar.MaxValue property is automatically calculated with respect to the item count. The ASPxTrackBar.Step property is automatically changed to 1.
Note
The ASPxTrackBar.ScalePosition property value should be other than None in order to display items.
<dx:ASPxTrackBar ID="ASPxTrackBar1" runat="server" ScalePosition="Both"
AllowRangeSelection="True"
PositionEnd="4" PositionStart="0" ValueType="System.String">
<Items>
<dx:TrackBarItem Text="Mon" Value="Monday"/>
<dx:TrackBarItem Text="Tue" Value="Tuesday"/>
<dx:TrackBarItem Text="Wed" Value="Wednesday"/>
<dx:TrackBarItem Text="Thu" Value="Thursday"/>
<dx:TrackBarItem Text="Fri" Value="Friday"/>
<dx:TrackBarItem Text="Sat" Value="Saturday"/>
<dx:TrackBarItem Text="Sun" Value="Sunday"/>
</Items>
</dx:ASPxTrackBar>
See Also