Skip to main content

TrackBarItem Class

An individual item within the ASPxTrackBar control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public class TrackBarItem :


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.



<dx:ASPxTrackBar runat="server" ScalePosition="LeftOrTop" ValueToolTipPosition="RightOrBottom">
          <dx:TrackBarItem Text="Item1" Value="1" />
          <dx:TrackBarItem Text="Item2" Value="2" />
          <dx:TrackBarItem Text="Item3" Value="3" />
          <dx:TrackBarItem Text="Item4" Value="4" />
See Also