I have restricted horizontal space on a page, but have multiple values to display in a graph. I thought a single-column, stacked column chart would fit the bill. I'm interested in showing proportion of values.
I have a simple model:
Using the AJAX mechanism shown here http://demos.telerik.com/aspnet-mvc/bar-charts/remote-data-binding I can get the chart to display using the following code:
@(Html.Kendo().Chart<RequestLoadingSummaryAggregate>() .Name("resourceLoadingChart") .Title("Resources") .Legend(legend=>legend.Visible(false)) .DataSource(dataSource=>dataSource.Read(read=>read.Action("RequestLoadingSummary","Home"))) .Series(series => { series.Column(model => model.Items).Name("Resource"); }) .CategoryAxis(axis=>axis .Categories(model=>model.UserName) .Labels(labels=>labels.Rotation(-90)) .MajorGridLines(lines=>lines.Visible(false)) ) .ValueAxis(axis=>axis.Numeric() .Labels(labels=>labels.Format("{0:N0}")) .MajorUnit(100) .Line(line=>line.Visible(false)) ) .Tooltip(tooltip=>tooltip .Visible(true) .Format("{0:N0}") ) .ChartArea(chartArea=> chartArea.Height(400)) )But I cannot get it to work as a Stacked Column using the additional defaults:
.SeriesDefaults(seriesDefaults => seriesDefaults.Column().Stack(ChartStackType.Normal))How can I project the model from the AJAX result into a form that the chart can understand such that the values occupy a single column with multiple values?
Thanks
Nathan
var grid = $("#myGrid").data("kendoGrid");
var currentPageSize = grid.dataSource.pageSize();
grid.dataSource.pageSize(++currentPageSize);
grid.refresh();01.@(Html.Kendo().ToolBar()02. .Name("ToolBar")03. .Items(items => 04. {05. items.Add().Type(CommandType.SplitButton).Text("Export").ImageUrl(Url.Content("~/Content/web/toolbar/save.png")).MenuButtons(menuButtons =>06. {07. menuButtons.Add().Text("Export to Excel").ImageUrl(Url.Content("~/Content/web/toolbar/save.png"));08. menuButtons.Add().Text("Export to PDF").ImageUrl(Url.Content("~/Content/web/toolbar/upload.png"));09. }); 10. })11. ) 12. @(Html.Kendo().Grid<RequestWorkflowWithWatcherViewModel>()13. .Name("grid")14. .Columns(columns =>15. {16.// columns stuff17. })18. .ToolBar(tools => 19. tools.Pdf())20. .Pdf(pdf => pdf21. .AllPages()22. .FileName("Kendo UI Grid Export.pdf")23. .ProxyURL(Url.Action("EnquiryExportToPdf", "Home"))24. ) 25. 26. ))Hi,
i am working with kendo scheduler and it gives me an error at scheduler event binding except for change event all other events generate me the same error. I created a new sample project with latest kendo version but still struggling with the same issue please refer the attach project and images for more information.
Has anyone ever experienced a grid not getting any of the data-roles applied to the markup when the page loads? This seems to happen randomly, but usually when we open up the Kendo Window that contains the grid very quickly after the page loads.
It almost looks like we are going too quick for Kendo to catch up and create the proper markup.
Has anyone else seen a problem like this?

@(Html.Kendo().Grid<OperMVC.Models.Daily>() .Name("Grid") .Columns(c => { c.Bound(p => p.Name).Width(150); c.Bound(p => p.BDayDate).Width(50); }) .ToolBar(toolbar => { toolbar.Template( @<div><label>BDate: </label> @(Html.Kendo().DatePicker() .Name("datepicker") .Events(e => e.Change("GetDate")) .Value(DateTime.Today) .Format("dd.MM.yyyy") )</div> ); }) .DataSource(dataSource => dataSource .Ajax() .Read(read => read.Action("ReadBDays", "Person").Data("filterDate")) //.ServerOperation(true) ) )function GetDate() { var value = this.value(); var date = new Date(); if (value) { date.setTime(Date.parse(value)); console.log(date.toLocaleDateString()); } $("#Grid").data("kendoGrid").dataSource.read(); }function filterDate() { var date = $("#datepicker").data("kendoDatePicker").value(); console.log("filtered date:" + date); return {dateString : date} }