Skip to main content

TrackBarSettings.PositionStart Property

Gets or sets the main drag handle position.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public decimal PositionStart { get; set; }

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 PositionStart property specifies the position of the main drag handle. To specify a secondary drag handle position, use the TrackBarSettings.PositionEnd 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 PositionStart property returns a zero-based index of an item where the main drag handle is placed. If the Items collection is empty, the PositionStart property is equal to the item’s TrackBarItem.Value property.

The available range of values the PositionStart property is determined by the TrackBarProperties.MinValue and TrackBarProperties.MaxValue property values.

Example

@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