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

Selection End Day Ahead

1 Answer 36 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 08 Sep 2011, 09:28 AM
I need to select a date range of a month, e.g. 1st December to 31st December, however selected a month period will select from 1st December to 1st January. The SelectionEnd date is always a day ahead, is there any way to correct this?

The timebar is hooked up to a radChart and so setting the date range on the timebar will only show the selected date range on the chart. I've noticed the issue only occurs with Line Charts and not Bar Charts.

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 13 Sep 2011, 03:47 PM
Hello Paul,

Basically, Line chart needs two points to draw a line and Bar chart needs one point to draw a bar. For example, if you select one day from the timebar and the Line chart draws only a point, this will not be in accordance with the specification of the Line chart. That is why when the SeriesDefinition is Line, the chart draws a point for the TimeBar.SelectionEnd date, even though it is not part of the selected range. Presently, it is not possible to customize this behavior. However, you can try with wiring the TimeBar.SelectionChanged event and manually update the chart data, according to the selected range of the timebar.

I hope this information helps.

Kind regards,
Polina
the Telerik team

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

Tags
TimeBar
Asked by
Paul
Top achievements
Rank 1
Answers by
Missing User
Share this question
or