This is a migrated thread and some comments may be shown as answers.

RadTrackBar Behaivor

1 Answer 86 Views
TrackBar
This is a migrated thread and some comments may be shown as answers.
Felipe
Top achievements
Rank 1
Felipe asked on 22 Jun 2010, 06:13 AM
The RadTrackBar when you drag the indicator forward it goes to the next tick but when you drag backwards it waits until you reach the previuos tick.

Both behaivors are not as I expect.

Is there a way to change them?

I expect that the inicator follows the mouse.


Regards

Felipe

1 Answer, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 24 Jun 2010, 04:46 PM
Hello Felipe,

What you are describing is the default behavior of RadTrackBar. The control was created to first of all mimic and then extend the functionality of the standard WinForms TrackBar. In this sense this is how the control should work.

However you might be able to achieve a smooth transition between ticks by applying appropriate value to the Maximum property. It sets the maximum value for the position of the slider on the RadTrackBar. If you want to keep the number of ticks unchanged you should set the TickFrequency property. Thus you will increase the logical range without changing the number of ticks. Here is a sample snippet:
private void Form1_Load(object sender, EventArgs e)
{
    this.radTrackBar1.Maximum = 100;
    this.radTrackBar1.TickFrequency = 5;
}

I hope you find this useful. Let me know if I can assist you further.

All the best,
Boryana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TrackBar
Asked by
Felipe
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Share this question
or