or
<script> $(document).ready(function () { $("#grid").kendoGrid({ dataSource: { type: "odata", transport: { }, pageSize: 10 }, groupable: true, sortable: true, pageable: { refresh: true, pageSizes: true, buttonCount: 5 }, columns: [{ field: "ContactName", title: "Contact Name", width: 140, template: "#= checkbox(ContactTitle)" }, { field: "ContactTitle", title: "Contact Title", width: 190 }, { field: "CompanyName", title: "Company Name" }, { field: "Country", width: 110 }] }); }); function checkbox(contactTitle) { if (contactTitle.length > 0) { return '<input type="checkbox" value="' + contactTitle + '" checked="checked" />'; } else { return '<input type="checkbox" value="' + contactTitle + '" />'; } } </script> <div id="grid" style="height: 380px" ></div>@model IEnumerable<SampleProject.GraphValueModel>@(Html.Kendo().Chart(Model) .Name("chart") .Title(title => title.Position(ChartTitlePosition.Top).Text("Some Customers")) .DataSource(dataSource => dataSource .Read(read => read.Action("ChartForAnything", "Home")) .Group(group => group.Add(model => model.ColumnOrGroupName)) .Sort(sort => sort.Add(model => model.AxisXValue).Ascending()) ) .Series(series => { series.Column(model => model.IndexValue, model => model.Color) .Name("close") .GroupNameTemplate("#= group.value #").Stack(true).Labels(label => { label.Position(ChartBarLabelsPosition.Center).Visible(true).Background("Transparent").Format("p1").Color("#FFFFFF"); }); }) .Legend(legend => legend .Position(ChartLegendPosition.Top) ) .ValueAxis(axis => axis.Numeric() .Labels(labels => labels.Format("p2").Skip(1)) .Axis.Max = 1.0f) .CategoryAxis(axis => axis .Categories(model => model.AxisXValue) .Labels(labels => labels.Format("MMM")) ))public class GraphValueModel{ public DateTime AxisXValue { get; set; } public string SerieName { get; set; } public object IndexValue { get; set; } public string Color { get; set; } public string ColumnOrGroupName { get; set; }}