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

Track bar takes 5 to 10 minutes to initialize.

4 Answers 114 Views
TrackBar
This is a migrated thread and some comments may be shown as answers.
Hugues
Top achievements
Rank 1
Hugues asked on 18 Feb 2015, 11:44 PM
When i set the min value to to -64k and max to 64k. My Application takes around 5 to 10 minutes to start. I also modify the large and min frequency to the same value as my min and max value.

Thanks,
Jerome

4 Answers, 1 is accepted

Sort by
0
Hugues
Top achievements
Rank 1
answered on 18 Feb 2015, 11:50 PM
I just tried the same range in Microsoft version of the track bar and it does not experience that problem.
0
Dimitar
Telerik team
answered on 23 Feb 2015, 03:07 PM
Hello Huges,

Thank you for writing.

I was able to reproduce the observed issue. I have logged it in our Feedback Portal. You can track the item for status changes and add your vote for it here.

The problem comes from the fact that when such minimum and maximum values are used the control creates a large number of elements. So to workaround this you should use smaller values for this properties. Actually if you think about it there is no way to visualize such amount of ticks (you don't have 128000 pixels on your monitor) so there is no need to use large numbers for the minimum and maximum.

Your Telerik Points have been updated for this report.

Should you have any other questions do not hesitate to ask.
 
Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Hugues
Top achievements
Rank 1
answered on 19 Mar 2015, 07:05 AM
I notice that this problem is still not fixed in the Jan 2015 build as well. This issue is still there. I really need a solution for this. Devxpress does not experience that problem with their trackbar control so does the Microsoft version. Telerik is the only one so far who has that issue.

Thanks.
0
Dimitar
Telerik team
answered on 23 Mar 2015, 03:48 PM
Hi Hugues,

Thank you for writing back.

This issue requires rewriting of the control's main logic and its resolving will take some time. Meanwhile, you can implement the workaround that I have suggested. For example:
float value;
public RadForm1()
{
    InitializeComponent();
    radTrackBar1.SmallTickFrequency = 10;
    radTrackBar1.LargeTickFrequency = 32;
    radTrackBar1.Minimum = -640;
    radTrackBar1.Maximum = 640;
     
    radTrackBar1.ValueChanged += radTrackBar1_ValueChanged;
    trackBar1.ValueChanged += trackBar1_ValueChanged;
}
 
void radTrackBar1_ValueChanged(object sender, EventArgs e)
{
    value = radTrackBar1.Value * 100;
}

I hope this helps.

Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TrackBar
Asked by
Hugues
Top achievements
Rank 1
Answers by
Hugues
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or