Drill Down Chart Demo Code Not Working After first level.

Thread is closed for posting
2 posts, 0 answers
  1. Serious
    Serious avatar
    3 posts
    Member since:
    Sep 2014

    Posted 06 Sep 2014 Link to this post

    I am trying to implement the Demo Code given at :  http://demos.telerik.com/aspnet-ajax/htmlchart/examples/drilldownchart/defaultcs.aspx
    I am using same Column names in my database.
    It only works for "years" but when i clicked on "2004" or any other year it gives following Error. 

    An exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll but was not handled in user code

    Additional information: Index was out of range. Must be non-negative and less than the size of the collection.

    This error occurs at  the code line :- 

     SqlDataSource2.SelectParameters[0].DefaultValue = Year.ToString();

    I am really confused about this. Please help me out in this. 

    Looking forward for a quick response. 
    Thank you.
  2. Danail Vasilev
    Danail Vasilev avatar
    1476 posts

    Posted 10 Sep 2014 Link to this post


    This issue is not directly related to the RadHtmlChart control but the select parameter of the SqlDataSource. As long as the right data source is passed to the chart it is supposed to render it properly.

    You can make a test by replacing the RadHtmlChart with an ASP control (e.g. GridView). If the issue is still reproducible then it is not related to the chart control and possible cause must be searched somewhere else (e.g., in the select parameter of the SqlDataSource).

    Danail Vasilev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top