ComponentOne Slider for ASP.NET AJAX: C1Slider Elements > Increment and Decrement Buttons

Increment and Decrement Buttons

The C1Slider control's Increment and Decrement buttons appear on either side of the slider track. Clicking the Increment and Decrement buttons changes the Value property and the position of the thumb button on the slider track.

 

 

Note: Clicking the Increment and Decrement buttons only changes the Value property and the position of the default thumb button on the slider track. It does not change the Value2 property and the position of the second thumb button, if used.

By default the Decrement button will appear on the left side of the slider if Orientation is set to Horizontal and the top of the control if Orientation is set to Vertical. By default the Increment button will appear on the right side of the slider if Orientation is set to Horizontal and the bottom of the control if Orientation is set to Vertical.

 

 

By default the Increment and Decrement buttons increase or decrease the slider's Value by 1 unit. To change the number by which the slider's Value is increased or decreased, you can use the Step property. Set the Step property to the number with which you want the Value to step up or down in value when the thumb is moved or the Increment or Decrement buttons are clicked.

By default the Increment and Decrement buttons are visible on each end of the slider track and the ShowIncrementButton and ShowDecrementButton properties are set to True. If you do not wish the Increment and Decrement buttons to be visible, you can set the ShowIncrementButton and ShowDecrementButton properties to False. The C1Slider will appear similar to the following:

 

 

You can set the IncrementToolTip and the DecrementToolTip properties if you want text to appear when the mouse hovers over the slider's Increment and Decrement buttons. This can be helpful to state the slider's minimum and maximum values or prompt the user for an action.


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.