or
@(Html.Kendo().TabStrip() .Name("statusReportTabs") .Items(ts => { ts.Add().Text("Daily Events") .Selected(true) .Content(@<text> <h5>Yesterday's Events (@(Model.ReportDate.AddDays(-1).ToLongDateString()))</h5> @(Html.Kendo().EditorFor(x => x.YesterdaysEvents) .Tools(t => t.FontColor().FontSize()) .HtmlAttributes(new {style="height:100px"}) ) <h5>Today's Events (@Model.ReportDate.ToLongDateString())</h5> @(Html.Kendo().EditorFor(x => x.TodaysEvents) .Tools(t => t.FontColor().FontSize()) .HtmlAttributes(new {style="height:100px"}) ) <h5>Tomorrow's Events (@(Model.ReportDate.AddDays(1).ToLongDateString()))</h5> @(Html.Kendo().EditorFor(x => x.TomorrowsEvents) .Tools(t => t.FontColor().FontSize()) ) </text>); ts.Add().Text("Contact Information") .Content("Contact Info Here"); ts.Add().Text("Concerns") .Content("Concern Info Here"); }))navigator: { seriesDefaults: { missingValues: "interpolate" }, series: series, pane: { height: 60 }, select: { from: sliderStartDate, to: endDate }, categoryAxis: { baseUnit: 'months', baseUnitStep: "auto", autoBaseUnitSteps: { months: [1] }, labels: { rotation: -30, step: 1, font: "8px sans-serif" } }, hint: { format: "{0:MMM yyyy} - {1:MMM yyyy}" }},selectEnd: function () { var totalChart = $("#total-chart").data('kendoStockChart'); var selectedStartDate = new Date(totalChart._navigator.options.select.from.getFullYear(), totalChart._navigator.options.select.from.getMonth(), 1); var selectedEndDate = new Date(totalChart._navigator.options.select.to.getFullYear(), totalChart._navigator.options.select.to.getMonth() + 1, 0); //TODO: figure out how to snap slider to first and last days of months. renderPage(selectedStartDate, selectedEndDate);}totalChart._navigator.options.select.from = selectedStartDate;totalChart._navigator.options.select.to = selectedEndDate;totalChart.resize();<div id="grid"> @(Html.Kendo().Grid(Model.ClientLoans) .Name("grdResults") .Columns(columns => { columns.Bound(loan => loan.ClientName); columns.Template(@<text>@Html.ActionLink(@item.AssetNumber, "ViewDetail", new { clientLoan = @item, id = @item.AssetNumber })</text>).Title("Asset Number"); }) .Pageable() .Sortable() .DataSource(dataSource => dataSource .Ajax() .PageSize(5) .Read(read => read.Action("SearchTest","ClientLoanSearch")) ) ) </div>$("#btnSearch").click(function () { var searchParameters = GetSearchParameters(); var jsonData = JSON.stringify(searchParameters, null, 2); $.ajax({ url: '@Url.Content("~/ClientLoanSearch/SearchTest")', type: 'POST', data: jsonData, datatype: 'json', contentType: 'application/json; charset=utf-8', success: function (data) { //debugger; var results = data; var dataSource = new kendo.data.DataSource({ data: results //dataType: "json", //columns: [ // { field: "ClientHcn", title: "Client HCN" }, // { field: "AssetNumber", title: "Asset Number" }] }); var grid = $('#grdResults').data('kendoGrid'); grid.setDataSource(dataSource); //grid.dataSource.read(); }, error: function (request, status, err) { alert(status); alert(err); } }); return false; });[HttpPost] public ActionResult SearchTest([DataSourceRequest]DataSourceRequest request, ClientLoanSearchModel model) { Library.ClientLoanCollection loans = Library.ClientLoanCollection.GetDummyData(); var jsonData = new {loans}; DataSourceResult result = loans.ToDataSourceResult(request); return Json(result, JsonRequestBehavior.AllowGet); }