Skip to main content

TrackBarItem.Value Property

Gets or sets the item’s associated value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public override object Value { get; set; }

Property Value

Type Default Description
Object null

An Object that specifies the item’s value.


The Value property specifies a value associated with an item. To access the item value on the client side, use the ASPxClientTrackBar.GetItemValue method.

If the item’s TrackBarItem.ToolTip property is not specified, the Value property value is displayed within the value tooltip.


For a track bar editor to function properly, values of all items in its ASPxTrackBar.Items collection should be unique. There should not be two or more items with the same value of the Value property.


The code sample below demonstrates how you can use the ASPxTrackBar control in two ways. On the one hand, a user can easily choose the required value or item, on the other hand, you can show end-users the visual result of their actions.

In this example, an end-user can select a chemical element and see its melting point. Here we use two track bars. The first track bar is used to visualize melting points and looks like a thermometer scale. By design, an end-user cannot change its value directly, so the ASPxEdit.ReadOnly property for this track bar is enabled. The second track bar is used to select the required chemical element. All the defined elements are gathered to the ASPxTrackBar.Items collection. The ASPxClientTrackBar.PositionChanged event of the second track bar is handled to update the value of the first track bar.

The image below shows the result.


function OnPositionChanged(s, e) {

function OnInit(s, e) {

function updateItems(trackBar) {
    var trackBarValue = trackBar.GetValue();
See Also