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

Hide

1 Answer 17 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Nidhi
Top achievements
Rank 1
Nidhi asked on 08 Nov 2011, 07:39 AM
Hi,

I want to show only day intervals. Can u please share any sample code.
Thanks in advance.

Nidhi


1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 10 Nov 2011, 03:32 PM
Hello Nidhi,
In case you want to show only the day interval in the timeBar, you should simply add only the day interval to the intervals collection of the control. For example:
<telerik:RadTimeBar
    PeriodStart="1-Oct-2010 12:00:00 AM" PeriodEnd="1-April-2011 12:11:00 AM"
    VisiblePeriodStart="1-Dec-2010" VisiblePeriodEnd="15-Jan-2011"
    SelectionStart="20-Dec-2010 12:03:00 AM" SelectionEnd="27-Dec-2010  12:04:00 AM">
     <telerik:RadTimeBar.Intervals>
         <telerik:DayInterval />
      </telerik:RadTimeBar.Intervals>
      <telerik:RadLinearSparkline LineStroke="#FF767676" LineShapeStyle="{StaticResource SparklineLineStyle}" ItemsSource="{Binding FlightReports, ElementName=viewModel}" XValuePath="TimeStamp" YValuePath="FlightCount" Margin="0,3" />
</telerik:RadTimeBar>


All the best,
Tsvetie
the Telerik team

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

Tags
TimeBar
Asked by
Nidhi
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or