Back to Devexpress

TrackBarSettings.PositionEnd Property

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

latest3.5 KB
Original Source

TrackBarSettings.PositionEnd Property

Gets or sets the secondary drag handle position.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public decimal PositionEnd { get; set; }
vb
Public Property PositionEnd 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 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.

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

PositionStart

Items

Value

MinValue

MaxValue

TrackBar

TrackBarSettings Class

TrackBarSettings Members

DevExpress.Web.Mvc Namespace