This is a migrated thread and some comments may be shown as answers.

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

0 Answers 58 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 29 Jun 2012, 01:16 PM

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!

No answers yet. Maybe you can help?

Tags
Chart
Asked by
Alex
Top achievements
Rank 1
Share this question
or