RadTrackBar Show Label at Maximum

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    35 posts
    Member since:
    Jul 2015

    Posted 01 Jul 2016 Link to this post

    Hello,

    I have a RadTrackBar that has an odd scale. The minimum value is 0 and the maximum value is 5, but the large tick frequency is 3. I'd like to show a label at the last position of the trackbar (at the 5). Is this possible?

    Look at the attached file for an example. I would like to show a label at the very right hand side of the trackbar.

    Thank you!

  2. Dess
    Admin
    Dess avatar
    1736 posts

    Posted 04 Jul 2016 Link to this post

    Hello Ryan,

    Thank you for writing. 

    RadTrackBar shows labels for its large ticks. Since you set the LargeTickFrequency to 3, you don't have a large tick for value 5. That is why I would recommend you to set the minimum-maximum interval to 1-5 and set the LargeTickFrequency property to 2. Thus, the odd values will be with a displayed label.

    An alternative solution is to use a separate RadLabel and adjust its location in order to fit the last small tick's location.

    I hope this information helps. Should you have further questions I would be glad to help.

    Regards,
    Dess
    Telerik
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Back to Top