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

TrackBar - Disable trailing color

2 Answers 76 Views
TrackBar
This is a migrated thread and some comments may be shown as answers.
Elijah
Top achievements
Rank 1
Elijah asked on 08 Nov 2017, 08:02 PM

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 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 09 Nov 2017, 04:24 PM
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.
0
Elijah
Top achievements
Rank 1
answered on 09 Nov 2017, 05:50 PM

It's perfect, thank you so much!

Cheers!

Tags
TrackBar
Asked by
Elijah
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Elijah
Top achievements
Rank 1
Share this question
or