Items Mode

ASPxTrackBar allows you to display custom items instead of automatically generated decimal scale marks. Populate the ASPxTrackBar.Items collection to activate ASPxTrackBar's items display mode.


ASPxTrackBar stores its items (instances of the TrackBarItem object) in the ASPxTrackBar.Items collection.

In items display mode, you do not need to specify the following properties:

The positions to which users can move drag handles correspond directly to items from the ASPxTrackBar.Items collection. When a user selects an item, the item's index is assigned to the editor's ASPxTrackBar.Position (or ASPxTrackBar.PositionStart/ASPxTrackBar.PositionEnd) property.

Use the editor's ASPxTrackBar.ValueType property to specify the type of item values.

You can populate the items collection manually, or bind an editor to a data source to populate it automatically (use the ASPxTrackBar.DataSourceID and ASPxTrackBar.DataSource properties).