Back to Devexpress

TrackBarItem Class

aspnet-devexpress-dot-web-ab329a30.md

latest3.6 KB
Original Source

TrackBarItem Class

An individual item within the ASPxTrackBar control.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class TrackBarItem :
    ListEditItemBase
vb
Public Class TrackBarItem
    Inherits ListEditItemBase

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

aspx
<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>

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

Inheritance

Object StateManager CollectionItem ListEditItemBase TrackBarItem

See Also

TrackBarItem Members

Items

Track Bar

DevExpress.Web Namespace