Tab
A newer version of this page is available. Switch to the current version.

TrackBarItem Class

An individual item within the ASPxTrackBar control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class TrackBarItem :
    ListEditItemBase
Public Class TrackBarItem
    Inherits ListEditItemBase

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 tool tip (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.

Examples

TrackBar_Items

<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>
See Also