4 Answers, 1 is accepted
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
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
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.
Thanks.
0
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:
I hope this helps.
Regards,
Dimitar
Telerik
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.