Bug in RadTrackbar?

4 posts, 0 answers
  1. Gerard van Eldik
    Gerard van Eldik avatar
    7 posts
    Member since:
    May 2006

    Posted 04 Dec 2006 Link to this post

    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?

    Gerard van Eldik.
  2. Chris
    Chris avatar
    221 posts

    Posted 05 Dec 2006 Link to this post

    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.
    trackbar.Mimimum = -50;
    trackbar.Maximum = 50;
    trackbar.Value = -1;
    trackbar.Value = 0;

    I'm sorry for the inconvenience.

    Kind regards,
    the telerik team
  3. DevCraft R3 2016 release webinar banner
  4. Van
    Van avatar
    5 posts
    Member since:
    May 2008

    Posted 29 Oct 2008 Link to this post

    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.
  5. Nick
    Nick avatar
    767 posts

    Posted 04 Nov 2008 Link to this post

    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.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top