or
[{ Id: 1, Name: 'Email', Type: 'Email', Default: '', Display: true, Identifier: true}, { Id: 2, Name: 'First name', Type: 'Text', Default: 'Fistname', Display: true, Identifier: false}, { Id: 3, Name: 'Last name', Type: 'Text', Default: 'Lastname', Display: true, Identifier: false}, { Id: 4, Name: 'City', Type: 'Text', Default: '', Display: true, Identifier: false}]<script id="row-template" type="text/x-kendo-template"> <tr data-uid="#= Id #"> <td align="center"> <a href="javascript:void(0);" data-bind="click: edit" class="editRow">edit</a> </td> <td data-bind="text: Name"></td> <td data-bind="text: Type"></td> <td data-bind="text: Default"></td> <td align="center"><input type="checkbox" data-bind="checked: Display" /></td> <td align="center"><input type="checkbox" data-bind="checked: Identifier" /></td> </tr></script>edit: function(e){ this.set('fields[' + (e.data.Id -1) +'].Default', 'Clicked');}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!


$("#phase-gauge").kendoRadialGauge({ transitions: false, pointer: { color: "#FF5770" }, scale: { min: 1, max: 7, majorUnit: 1 } });