ASPxTrackBar.Items Property
Gets the collection of items in the ASPxTrackBar control.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public TrackBarItemCollection Items { get; }
#Property Value
Type | Description |
---|---|
Track |
A Track |
#Remarks
This property is a wrapper of the TrackBarProperties.Items property.
#Example
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 ASPx
<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>