Back to Devexpress

TrackBarSettings.PositionStart Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-trackbarsettings-ec1ccc11.md

latest3.5 KB
Original Source

TrackBarSettings.PositionStart Property

Gets or sets the main drag handle position.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public decimal PositionStart { get; set; }
vb
Public Property PositionStart As Decimal

Property Value

TypeDescription
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

aspx
@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

AllowRangeSelection

Position

PositionEnd

Items

Value

MinValue

MaxValue

TrackBar

TrackBarSettings Class

TrackBarSettings Members

DevExpress.Web.Mvc Namespace