Skip to main content
Tab

ASPxTrackBar.ValueToolTipFormatString Property

Gets or sets the format string representation of a value tooltip.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue("")]
public string ValueToolTipFormatString { get; set; }

Property Value

Type Default Description
String String.Empty

An String object that contains value tooltip settings.

Remarks

This property is a wrapper of the TrackBarProperties.ValueToolTipFormatString property.

Example

This example demonstrates how you can use the ASPxTrackBar control for price selection.

The ASPxTrackBar.ValueToolTipFormatString and ASPxTrackBar.ScaleLabelFormatString properties define the currency format. The ASPxTrackBar.ScaleLabelHighlightMode property specifies which scale labels should be highlighted.

The image below shows the result:

trackbar_example_valuetooltipformatstring

<dx:ASPxTrackBar ID="ASPxTrackBar2" runat="server" LargeTickEndValue="50" 
    MaxValue="50" ScaleLabelHighlightMode="HandlePosition" ScalePosition="Both" 
    SmallTickFrequency="10" ScaleLabelFormatString="{0:C0}" 
    ValueToolTipFormatString="Selected price: {0:C0}" Width="466px" >
</dx:ASPxTrackBar>
See Also