Free Trial Buy Now

Track Bar - Items




Description

TrackBar allows you to display custom items instead of automatically generated scale marks. Populate the Items collection to activate ASPxTrackBar's items display mode. This collection can be filled manually or populated automatically through binding the editor to a data source. In items display mode, setting the MinValue/MaxValue, LargeTickInterval/SmallTickFrequency and Step properties are not in effect. Scale labels, tick marks and possible positions to which drag handles can be moved by end-users correspond directly to items from the Items collection. When an end-user selects an item, the item's index is assigned to the editor's Position (or PositionStart/PositionEnd) property.

For each item you can define:

  • the text displayed as the item label (the TrackBarItem.Text property);
  • unique item value (the TrackBarItem.Value property);
  • the text displayed within a value tooltip invoked for the item when it is being selected by an end-user (the TrackBarItem.ToolTip property).

The type of item values can be centrally specified via the editor's ValueType property (by default it is set to Decimal).

This demo illustrates how to use ASPxTrackBar's client API to synchronize item selection with the display of the corresponding image. ASPxTrackBar and a standard Repeater (whose ItemTemplate contains an ASPxImage control in this demo) are bound to the same XML data file.

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.