TrackBar - Disable trailing color

3 posts, 0 answers
  1. Elijah
    Elijah avatar
    4 posts
    Member since:
    Aug 2014

    Posted 08 Nov Link to this post

    Hi.  I'm looking to use the RadTrackBar as a selector for hours.  For example, far left would be 0700 (7am) and far right would be 1400 (2pm).

    I cannot figure out how to disable/turn off/colorize the TrackBarIndicatorElement behind the slider.  I want just the bar with the slider.  As the user moves it, there should not be any color displayed in the bar.  Is that possible?

  2. Hristo
    Admin
    Hristo avatar
    1078 posts

    Posted 09 Nov Link to this post

    Hello Elijah,

    Thank you for writing.

    You can set the DrawFill property of the range element responsible for painting the background: 
    this.radTrackBar1.TrackBarElement.BodyElement.IndicatorContainerElement.FindDescendant<TrackBarRangeElement>().DrawFill = false;

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Elijah
    Elijah avatar
    4 posts
    Member since:
    Aug 2014

    Posted 09 Nov in reply to Hristo Link to this post

    It's perfect, thank you so much!

    Cheers!

Back to Top