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

Hide the timebar selector

1 Answer 117 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 26 Jun 2012, 02:32 AM
Hello,

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.

Thanks,
Eric

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 28 Jun 2012, 03:02 PM
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" />
</Style>

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"
              IsSnapToIntervalEnabled="True">
    <telerik:RadTimeBar.Intervals>
        <telerik:YearInterval />
        <telerik:MonthInterval />
        <telerik:WeekInterval />
        <telerik:DayInterval />
    </telerik:RadTimeBar.Intervals>
    <telerik:RadLinearSparkline x:Name="sparkline" XValuePath="Date" YValuePath="Value" />
</telerik:RadTimeBar>


All the best,
Sia
the Telerik team

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

Tags
TimeBar
Asked by
Eric
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or