or
$.ajax({ type: "POST", async: true, contentType: "application/json;charset=utf-8", url: "@Url.Content("~/Home/GetTreeItems")", data: '{"PID":"' + pid + '"}', dataType: "json", success: function(data){ var treeview = $('#AjaxTreeView').data('tTreeView'); $('#spinner').hide(); PID=data.PID; pathwayData=data.elementList; elementCount=data.ElementCount; treeview.bindTo(data.nodeList); $('#treeShower').show(); }, error: function(){ alert("An error has occurred"); } });var treeview = $('#AjaxTreeView').data('kendoTreeView');@(Html.Kendo().Chart<Noolibee.Presentation.Web.Administration.Areas.Nodes.Models.EnergyGraphModel>() .Name("intensityKendoChart") .ChartArea(chart => chart.Background("")) .DataSource(dataSource => dataSource.Read(read => read.Action("GetIntensityValues", "Plugins"))) .Series(series => { series .Line(line => line.Value) .Name("Ampere") .Color("blue") .Tooltip(true) .Width(2) .Markers(marker => marker.Type(ChartMarkerShape.Circle).Size(4)); }) )$("#MyGrid").empty(); $("#MyGrid").kendoGrid();.Editable( editing => editing .Mode( GridEditMode.PopUp ) .DisplayDeleteConfirmation( true ) .Window( window => window.Width( 500 ) ))I have looked through the limited documentation and examples and have not been able to answer these questions but if I missed an example I am happy to have that pointed out so I can take a look.
Thanks for your help!
Html.Kendo().Grid<ArrayOfSearchResultObjectSearchResultObject>(Model.Results).Name("srchGrd").Columns(columns =>{ columns.Bound(o => o.Chemical).ClientTemplate("<a title='#=Chemical#' href='" + Url.Action("", "ChemBioSearch", new { area = "Tools" }, Request.Url.Scheme) + "/GetDetail?ChemName=#=Chemical#&DetailID=#=ID#&DetailSource=#=SearchSource#&id=" + Model.ProjectGUID.ToString() + "' >" + "#=Chemical# </a>" ).Title("Chemical"); columns.Bound(o => o.CasNumber).Title("CAS #"); columns.Bound(o => o.UnNumber).Title("UN ID #"); columns.Bound(o => o.FriendlySourceName).Title("Data Source");}) .DataSource(ds => { ds.Ajax().ServerOperation(false).Read(read => read.Action("_GetSearchResults", "ChemBioSearch", new { area = "Tools" })); } ).Scrollable(scrolling => scrolling.Enabled(false)).Sortable(sorting => sorting.Enabled(true)).Pageable(paging => paging.Enabled(true)).Filterable(filtering => filtering.Enabled(true)).Groupable(grouping => grouping.Enabled(false)).Render();[AcceptVerbs(HttpVerbs.Post | HttpVerbs.Get)][OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]public ActionResult _GetSearchResults([DataSourceRequest] DataSourceRequest request,ChemBioSearchModel mdl){ if ((mdl != null) && (mdl.IsValid)) { ArrayOfSearchResultObject rslt = SearchGlobal(mdl); if ((rslt != null) && (rslt.Items.Length > 0)) { foreach (ArrayOfSearchResultObjectSearchResultObject arr in rslt.Items) { mdl.Results.Add(arr); } } return Json(mdl.Results.ToDataSourceResult(request), JsonRequestBehavior.AllowGet); } return Json(new List<ArrayOfSearchResultObjectSearchResultObject>().ToDataSourceResult(request), JsonRequestBehavior.AllowGet);}[HttpPost][ValidateAntiForgeryToken]public ActionResult SearchChemBio(ChemBioSearchModel mdl){ if (mdl != null) { if (ModelState.IsValid) { ArrayOfSearchResultObject rslt = SearchGlobal(mdl); if ((rslt != null) && (rslt.Items !=null) && (rslt.Items.Length > 0)) { foreach (ArrayOfSearchResultObjectSearchResultObject arr in rslt.Items) { mdl.Results.Add(arr); } } return PartialView("SearchResults", mdl); } else { return View(mdl); } } throw new ArgumentException("No Model found for Chem Bio Search");}