RadTrackBar's minimum value is automatically set to 19

2 posts, 0 answers
  1. Sebastian
    Sebastian avatar
    1 posts
    Member since:
    Jan 2015

    Posted 16 Aug Link to this post

    Hello all together!

     

    I am currently experiencing the below issues with RadTrackBar.

     

    TrackBar.Minimum is set to 50.

    TrackBar.Maximum is set to 150.

    TrackBar.Value is set to 100.

     

    I guess, everybody should now expect the track bar to move the knob in the exact middle of the control. But it simply doesn't. When looking at the track bar's minimum, maximum and value properties during FormLoad event, I discovered that the minimum changed to 19.

    What I did next was searching for the number in the designer class of the respective form, assuming that Visual Studio somehow messed it up as it is always doing from time to time. But nothing found here. Setting the minimum value again in FormLoad fixes the problem, but this should not be the default approach when working with a RadTrackBar. So this must be a bug, right?

  2. Dimitar
    Admin
    Dimitar avatar
    1877 posts

    Posted 17 Aug Link to this post

    Hi Sebastian,

    By default, the maximum is 20 and since the minimum cannot be larger it will be set to 19. So you just need to set the maximum first.

    I hope this will be useful.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top