aspnet-devexpress-dot-web-ab329a30.md
An individual item within the ASPxTrackBar control.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public class TrackBarItem :
ListEditItemBase
Public Class TrackBarItem
Inherits ListEditItemBase
The following members return TrackBarItem objects:
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">
<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>
Object StateManager CollectionItem ListEditItemBase TrackBarItem
See Also