or
@(Html.Kendo().Editor() .Name("sectionBlockEditor") .HtmlAttributes(new { style = "width: 900px;height:530px" }) .Tools(tools => tools .Clear() .Formatting() .CustomTemplate(ct => ct.Template("<label for='templateTool' style='vertical-align:middle;'>Background:</label> <select id='templateTool'><option value=''>none</option><option value='\\#ff9'>yellow</option><option value='\\#dfd'>green</option></select>")) ) )@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;