Skip to main content

ASPxClientTrackBar.GetPosition Method

Gets a drag handle position.


GetPosition(): number


Type Description

A value that specifies the position.


Use the GetPosition method to get the position of the drag handle. If the ASPxTrackBar.AllowRangeSelection property is set to true, a track bar displays two drag handles to support the value range selection. In this case, use the ASPxClientTrackBar.GetPositionStart and ASPxClientTrackBar.GetPositionEnd methods to get the position of the main and secondary handles respectively.

To set the position of a drag handle use the ASPxClientTrackBar.SetPosition method.

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

The available range of values for the GetPosition method is determined by the ASPxTrackBar.MinValue and ASPxTrackBar.MaxValue property values.

See Also