Simple read.Action MVC json not working

2 posts, 0 answers
  1. Kim
    Kim avatar
    4 posts
    Member since:
    May 2013

    Posted 06 Nov 2013 Link to this post

    Not sure why there is no data being pulled into the chart.
    I used fiddler to test the Json call and verified that the data is there
    However, when running these code through the debugger, the break point never stop at the DrillDownChart_Read ActionResult.

    public ActionResult DrillDownChart_Read()
    List<IDrillDownChart> myResultList = new List<IDrillDownChart>();
    List<int> myIntList = new List<int>();
    myResultList.Add(new DrillDownChartCategoryWithData("x", 20, 25, 1, "webvstf", "Engineering Systems", myIntList));
    myResultList.Add(new DrillDownChartCategoryWithData("y", 30, 25, 1, "webvstf", "Engineering Systems", myIntList));

    return Json(myResultList, JsonRequestBehavior.AllowGet);

    .Title("Drill Down Chart")
    .Legend(legend => legend
    .DataSource(dataSource => dataSource
    .Read(read => read.Action("DrillDownChart_Read", "ProjectReports"))
    .SeriesDefaults(seriesDefaults =>
    .Series(series => {
    series.Bar(d => d.PercentComplete)
    .Name("Percent Complete")
    .CategoryAxis(axis => axis
    .Categories(model => model.DisplayTitle)
  2. Petur Subev
    Petur Subev avatar
    1882 posts

    Posted 08 Nov 2013 Link to this post

    Hello Kim,

    Make sure that you have added all the needed scripts and you are not actually experiencing some of the problems covered in the troubleshooting guide:

    If you still struggle send a small demo project so we can investigate further.

    Petur Subev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET AJAX banner
Back to Top