RadTrackBar Behaivor

2 posts, 0 answers
  1. Felipe
    Felipe avatar
    13 posts
    Member since:
    Jun 2009

    Posted 22 Jun 2010 Link to this post

    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
  2. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 24 Jun 2010 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top