Is there a Columns.LoadSettings() equivalent for chart series?

1 posts, 0 answers
  1. Alex
    Alex avatar
    7 posts
    Member since:
    May 2012

    Posted 29 Jun 2012 Link to this post

    Hi,

    Currently in KendoUI for MVC, one can load the columns for a KendoGrid by writing this in the view,

    @(Html.Kendo().Grid<Object>(
       
    .Name("Some name")
       
    .Columns(columns =>
       
    {
            columns
    .LoadSettings((IEnumerable<GridColumnSettings>)ViewData["Columns"]);
       
    })
       
    // ...
    )

    where ViewData["columns"] has been set in the controller.

    I'm wondering if there is some similar way of loading several series for a KendoChart. I know I could probably accomplish this using javascript and an AJAX call, but I would rather use Razor for as much as I can, and I would like to avoid making too many server calls.

    Thanks!

Back to Top