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

Bug in RadTrackbar?

3 Answers 117 Views
TrackBar
This is a migrated thread and some comments may be shown as answers.
Gerard van Eldik
Top achievements
Rank 1
Gerard van Eldik asked on 04 Dec 2006, 10:03 PM
When using a RadTrackbar with a minimum value below 0 and maximum above 0, setting the value 0 zero sets the handle to the wrong position.

So let's say the minimum is -50 and the maximum +50 setting the value to 0 should position the tracker in the middle. But it sets it to the farmost left.

Is this a bug?

Thanks,
Gerard van Eldik.

3 Answers, 1 is accepted

Sort by
0
Chris
Telerik team
answered on 05 Dec 2006, 03:39 PM
Hi Gerard,
This is a bug :(
We reproduced it and managed to fix it. The fix will be available in the upcoming Q4 release (scheduled for the 20th of December). As a matter of fact the problem was not related to positioning the handle correctly but rather to refreshing its position when the Minimum or Maximum property changes.
You could use the following work-around until we release Q4:
After setting the Minimum and Maximum properties you could change the Value property to some integer and then set it back to the desired value.
e.g.
trackbar.Mimimum = -50;
trackbar.Maximum = 50;
trackbar.Value = -1;
trackbar.Value = 0;


I'm sorry for the inconvenience.

Kind regards,
Chris
the telerik team
0
Van
Top achievements
Rank 1
answered on 30 Oct 2008, 04:49 AM
I'm using Q2SP1 2008. Can not set neg value for minimum value. I have to calculate to get my value. I followed your guide. It does not work either.
0
Nick
Telerik team
answered on 04 Nov 2008, 08:49 AM
Hello Van,

Thank you for your question.

Setting only positive values is currently the designed behavior of the control. Sorry for the introduced inconvenience.

Do not hesitate to write me back if you have further questions.

Regards,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TrackBar
Asked by
Gerard van Eldik
Top achievements
Rank 1
Answers by
Chris
Telerik team
Van
Top achievements
Rank 1
Nick
Telerik team
Share this question
or