Last Updated: 03 Jul 2017 08:23 by ADMIN
Created on: 23 Feb 2015 14:50
Type: Bug Report
FIX. RadTrackBar - performance issue when large range between minimum and maximum is used.
To reproduce:
private void radButton1_Click(object sender, EventArgs e)
    radTrackBar1.Minimum = -64000;
    radTrackBar1.Maximum = 64000;

Case thread with suggestion for workaround: http://www.telerik.com/community/forums/track-bar-takes-5-to-10-minutes-to-initialize
Posted on: 06 Feb 2017 14:51
Thanks for your input Jeremy.
Posted on: 03 Feb 2017 17:09
Just within one form that has several TrackBar controls there are these ranges:
0 - 1000
0 - 2048
-180 - 180
0 - 5000
0 - 2500
0 - 2000
And I went looking for the highest value very quickly and ran across 0 - 100000

A few of these are scaled up due to the fact that TrackBar is limited to int instead of float on the value/maximum/minimum.

Again, I'm not even using the tick functionality but was getting a performance hit for it so while there's maybe some code changes I could make, I am tasked with taking the least path of resistance :-/
Posted on: 03 Feb 2017 16:45
Thank you for getting back to us. 

Would you please share the range that you would need to work with, so we can have it in mind?
Posted on: 03 Feb 2017 15:55
There's a user control in this application that contains the TrackBar that I was trying to replace with RadTrackBar.

It is used in many place and having a single scale value for the value wouldn't work nicely in all cases.

Choosing between something that looks not quite as nice vs. going through all the cases and customizing the scale... It's simpler to just not look quite as nice.
Posted on: 03 Feb 2017 15:45
Did you see the suggested approach in the forum thread above? Isn't it working for you?
Posted on: 02 Feb 2017 17:53
The fact that when I set tick style to None and snap mode to none and still receive a performance hit for the rendering of ticks makes this unusable for my application.