Hide the timebar selector

2 posts, 0 answers
  1. Eric
    Eric avatar
    48 posts
    Member since:
    Jul 2012

    Posted 25 Jun 2012 Link to this post


    is there a way to hide the selector slider control.  I still would like it to function (ie when I click on the timebar I war to be able to know I've clicked there), I just don't want to see it, or allow the user to move it.

  2. Sia
    Sia avatar
    667 posts

    Posted 28 Jun 2012 Link to this post

    Hello Eric,

    You can easily achieve the needed by having the following style in your resources:
    <Style x:Key="NoSlider" TargetType="telerik:RadSlider">
        <Setter Property="Visibility" Value="Collapsed" />

    and apply it to the RadTimeBar control through the exposed SliderStyle property:
    <telerik:RadTimeBar SliderStyle="{StaticResource NoSlider}"
                  PeriodStart="1-Jan-01 12:00:00 AM"
                  PeriodEnd="31-Dec-03 11:59:59 PM"
                  VisiblePeriodStart="1-Jan-2001 12:00:00 AM"
                  VisiblePeriodEnd="31-Dec-2001 11:59:59 PM"
            <telerik:YearInterval />
            <telerik:MonthInterval />
            <telerik:WeekInterval />
            <telerik:DayInterval />
        <telerik:RadLinearSparkline x:Name="sparkline" XValuePath="Date" YValuePath="Value" />

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top