Selection End Day Ahead

2 posts, 0 answers
  1. Paul
    Paul avatar
    38 posts
    Member since:
    Oct 2008

    Posted 08 Sep 2011 Link to this post

    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.
  2. Missing user
    Missing user avatar

    Posted 13 Sep 2011 Link to this post

    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 >>

  3. DevCraft banner
Back to Top