RadTrackBar - Hiding Slider

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

    Posted 22 Jan 2015 Link to this post


    Is there any ability in the RadTrackBar to hide the actual slider?  I'm basically looking to use the control just for the tick marks and no visible slider or slide area.

  2. Ralitsa
    Ralitsa avatar
    175 posts

    Posted 23 Jan 2015 Link to this post

    Hi Bob,

    Thank you for contacting us. 

    Yes, you can hide the indicator or line elements of RadTrackBar. Please refer to the following code snippet: 
    this.radTrackBar1.LabelStyle = Telerik.WinControls.UI.TrackBarLabelStyle.TopLeft;
    this.radTrackBar1.TickStyle = Telerik.WinControls.Enumerations.TickStyles.TopLeft;
    TrackBarIndicatorElement element = (TrackBarIndicatorElement)this.radTrackBar1.TrackBarElement.BodyElement.IndicatorContainerElement.Children[0];
    element.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
    TrackBarLineElement lineElement = (TrackBarLineElement)this.radTrackBar1.TrackBarElement.BodyElement.ScaleContainerElement.Children[1];
    lineElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

    In attachments you can find the image which demonstrates you the result of code snippet. I also added a sample project. 

    In case that is not what you want to achieve, I would kindly ask you to send me a more detailed explanation. Any additional details like screenshots or sketches would also be helpful.

    Let me know if I can assist you further.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
  4. Bob
    Bob avatar
    2 posts
    Member since:
    Jan 2015

    Posted 23 Jan 2015 in reply to Ralitsa Link to this post

    This is exactly what I wanted.  Thank you for the code sample.
Back to Top