A newer version of this page is available. Switch to the current version.

TrackBarSettings.PositionEnd Property

Gets or sets the secondary drag handle position.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll

Declaration

public decimal PositionEnd { get; set; }
Public Property PositionEnd As Decimal

Property Value

Type Description
Decimal

A Decimal value that specifies the position.

Remarks

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

If the TrackBarProperties.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 TrackBarProperties.MinValue and TrackBarProperties.MaxValue property values.

Examples

@Html.DevExpress().TrackBar(
     settings => {
          settings.Name = "myTrackBar";
          settings.Properties.AllowRangeSelection = true;
          settings.Properties.ScalePosition = ScalePosition.LeftOrTop;
          settings.Properties.ValueToolTipPosition = ValueToolTipPosition.RightOrBottom;
          settings.Properties.ValueToolTipFormatString = "{0}%...{1}%";
          settings.Properties.Step = 1;
          settings.PositionStart = 10;
          settings.PositionEnd = 30;
     }
).GetHtml()
See Also