or
@model List<Kendo.Mvc.Examples.Models.StockDataPoint>
series.Column(model => model.Close)
) how could I do that exactly ?
@model IEnumerable<Kendo.Mvc.Examples.Models.StockDataPoint><div class="chart-wrapper"> @(Html.Kendo().Chart(Model) .Name("chart") .Title("Stock Prices") .DataSource(dataSource => dataSource .Read(read => read.Action("_StockData", "Scatter_Charts")) .Group(group => group.Add(model => model.Symbol)) .Sort(sort => sort.Add(model => model.Date).Ascending()) ) .Series(series => { series.Column(model => model.Close) .Name("#= group.value # (close)"); }) .Legend(legend => legend .Position(ChartLegendPosition.Bottom) ) .ValueAxis(axis => axis.Numeric() .Labels(labels => labels .Format("${0}") .Skip(2) .Step(2) ) ) .CategoryAxis(axis => axis .Categories(model => model.Date) .Labels(labels => labels.Format("MMM")) ) ) </div>
_dataSource.autoSync = true;var grid = $("#daily-tasks-detail-grid").kendoGrid({ dataSource: { transport: { read: { url: '/json/ords', dataType: 'json' } } }, columns: [ { title: "Worker"}, { title: "Description" } ], rowTemplate: kendo.template($("#rowTemplate").html())}).data('kendoGrid');<script id="rowTemplate" type="text/x-kendo-tmpl"> <tr role="row"> <td role="gridcell"></td> <td role="gridcell"></td> </tr> <tr role="row"> <td role="gridcell"></td> <td role="gridcell"></td> </tr></script>