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

RadTrackBar Show Label at Maximum

1 Answer 89 Views
TrackBar
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 01 Jul 2016, 03:10 PM

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!

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 04 Jul 2016, 09:22 AM
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 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.
Tags
TrackBar
Asked by
Ryan
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or