TrackBarItem Class
An individual item within the ASPxTrackBar control.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Related API Members
The following members return TrackBarItem objects:
Remarks
The TrackBarItem class implements the functionality of an individual item within the ASPxTrackBar control. Instances of the TrackBarItem class are maintained within the ASPxTrackBar.Items collection. Individual items can be added/deleted to/from a track bar control by using the means provided by the Items collection.
Use properties of the TrackBarItem class to specify the item text (TrackBarItem.Text), value (TrackBarItem.Value), and tooltip (TrackBarItem.ToolTip).
If a track bar is data bound (via the ASPxTrackBar.DataSource or ASPxTrackBar.DataSourceID property), the items contained within the Items collection are not in effect.
Example
<dx:ASPxTrackBar runat="server" ScalePosition="LeftOrTop" ValueToolTipPosition="RightOrBottom">
<Items>
<dx:TrackBarItem Text="Item1" Value="1" />
<dx:TrackBarItem Text="Item2" Value="2" />
<dx:TrackBarItem Text="Item3" Value="3" />
<dx:TrackBarItem Text="Item4" Value="4" />
</Items>
</dx:ASPxTrackBar>