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

    Hi,

     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);
            bbs.SeriesItems.Add(rsi);

     

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

  2. Daniel
    Admin
    Daniel avatar
    4945 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

    Regards,
    Daniel
    Telerik
    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. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top