So I originally defined a TabStrip and manually loaded the content using LoadContentFrom with an Action which returned a PartialView of content defined in another .cshtml. It worked fine.
Now I want to do something similar, but have the items of the TabStrip bound to a collection. The TabStrip is binding the text of the item just fine, but the Action to get the content is never being called. How do I define it so that it does, similar to LoadContentFrom?
If my old implementation is:
@(Html.Kendo().TabStrip() .Name("tabStrip") .Items(items => { items.Add().Text("Test").LoadContentFrom("MyAction","MyController", new { id = 0 });})
)How do I translate that to:
@(Html.Kendo().TabStrip() .Name("tabStrip") .BindTo(Model, (item, category) => { item.Text = category.TestText; // works item.Action("MyActions", "MyController", new { id = 0 }); // Doesn't seem to do anything }))
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?
