Skip to main content

ASPxTrackBar.PositionEnd Property

Gets or sets the secondary drag handle position.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


[DefaultValue(typeof(decimal), "0")]
public decimal PositionEnd { get; set; }

Property Value

Type Default Description
Decimal "0"

A Decimal value that specifies secondary drag handle position.


When the ASPxTrackBar.AllowRangeSelection property is set to true, a track bar displays two drag handles to support the value range selection. In this case, the PositionEnd property specifies the position of the secondary drag handle. To specify the main drag handle position, use the ASPxTrackBar.PositionStart property. If the AllowRangeSelection property is set to false, you can specify the position of the single drag handle using the ASPxTrackBar.Position property.

If the ASPxTrackBar.Items collection is specified, the PositionEnd property returns a zero-based index of an item where the secondary drag handle is placed. If the Items collection is empty, the PositionEnd property is equal to the item’s TrackBarItem.Value property.

The available range of values of the PositionEnd property is determined by the ASPxTrackBar.MinValue and ASPxTrackBar.MaxValue property values.


The code sample below demonstrates how you can use the ASPxTrackBar control to specify a filter condition for the ASPxGridView control.

Handle the ASPxClientTrackBar.PositionChanging event to update label content that displays the currently selected range. The ASPxClientTrackBar.PositionChanged event handler applies the specified filter to the grid by using the ASPxClientGridView.ApplyFilter method. Note that the ASPxTrackBar.ValueChangedDelay property specifies the time interval between when a user changes the editor’s value and when the filter is applied.

The image below shows the result.


function initLbRange() {
     lbRange.SetText('$' + tbSale.GetPositionStart() + ',000 - $' + tbSale.GetPositionEnd() + ',000');

function updateLbRange(s, e) {
     lbRange.SetText('$' + e.newPositionStart + ',000 - $' + e.newPositionEnd + ',000');

function updateGrid() {
     var filterCondition = "[Sale] > " + tbSale.GetPositionStart() * 1000 
     + " AND [Sale] < " + tbSale.GetPositionEnd() * 1000;
See Also