ASPxTrackBar.ValueToolTipPosition Property
Gets or sets the value tooltip position.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
[DefaultValue(ValueToolTipPosition.LeftOrTop)]
public ValueToolTipPosition ValueToolTipPosition { get; set; }
Property Value
Type | Default | Description |
---|---|---|
ValueToolTipPosition | LeftOrTop | One of the ValueToolTipPosition enumeration values. |
Available values:
Name | Description |
---|---|
None | A value tooltip is not displayed. |
RightOrBottom | A value tooltip is displayed at the editor’s right (for the vertical orientation) or bottom (for the horizontal orientation). |
LeftOrTop | A value tooltip is displayed at the editor’s left (for the vertical orientation) or top (for the horizontal orientation). |
Remarks
This property is a wrapper of the TrackBarProperties.ValueToolTipPosition property.
Example
The code sample below demonstrates how you can use the ASPxTrackBar control to specify a filter condition for the ASPxGridView control.
Handle the ASPxClientTrackBar.PositionChanging event to update label content that displays the currently selected range. The ASPxClientTrackBar.PositionChanged event handler applies the specified filter to the grid by using the ASPxClientGridView.ApplyFilter method. Note that the ASPxTrackBar.ValueChangedDelay property specifies the time interval between when a user changes the editor’s value and when the filter is applied.
The image below shows the result.
function initLbRange() {
lbRange.SetText('$' + tbSale.GetPositionStart() + ',000 - $' + tbSale.GetPositionEnd() + ',000');
updateGrid();
};
function updateLbRange(s, e) {
lbRange.SetText('$' + e.newPositionStart + ',000 - $' + e.newPositionEnd + ',000');
};
function updateGrid() {
var filterCondition = "[Sale] > " + tbSale.GetPositionStart() * 1000
+ " AND [Sale] < " + tbSale.GetPositionEnd() * 1000;
grid.ApplyFilter(filterCondition);
};