RadHtmlChart set YAxis on Date Rages for RangeSeriesItem

2 posts, 0 answers
  1. Jahangeer
    Jahangeer avatar
    19 posts
    Member since:
    Apr 2013

    Posted 28 Dec 2015 Link to this post


     Can I set date range for RangeSeriesItem inside of RangeBarSeries for RadHTML Chart something like this

    can I set 


      RangeSeriesItem rsi = new RangeSeriesItem();
            rsi.From = DateTime.Now.AddDays(-1);
            rsi.To = DateTime.Now.AddDays(1);


    instead of setting decimal values in From and To for Range series Item??

  2. Daniel
    Daniel avatar
    4933 posts

    Posted 01 Jan Link to this post

    Hello Jahangeer,

    The From and To properties are of type nullable decimal so, it is not possible to directly assign date object to them. You can however try the approach suggested in this forum topic:
    "Specified cas is not valid" Error when assigning Date variables to RangeSeriesItems

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top