or
<a class='k-button k-button-icontext' data-ajax='true' data-ajax-mode='replace' data-ajax-method='Get' data-ajax-update='\\#editorform' href='/FallsAssessment/Edit?EventID=#=EventID #' data-ajax-success='showModal'><span class='k-icon k-i-pencil'/>Edit</a>[NotImplementedException: The method or operation is not implemented.] System.Web.HttpRequestBase.get_HttpMethod() +29 System.Web.Routing.<>c__DisplayClass3.<Match>b__0(String method) +25 System.Linq.Enumerable.Any(IEnumerable`1 source, Func`2 predicate) +146 System.Web.Routing.HttpMethodConstraint.Match(HttpContextBase httpContext, Route route, String parameterName, RouteValueDictionary values, RouteDirection routeDirection) +164 System.Web.Routing.HttpMethodConstraint.System.Web.Routing.IRouteConstraint.Match(HttpContextBase httpContext, Route route, String parameterName, RouteValueDictionary values, RouteDirection routeDirection) +22 System.Web.Routing.Route.ProcessConstraint(HttpContextBase httpContext, Object constraint, String parameterName, RouteValueDictionary values, RouteDirection routeDirection) +56 System.Web.Routing.Route.ProcessConstraints(HttpContextBase httpContext, RouteValueDictionary values, RouteDirection routeDirection) +100 System.Web.Routing.Route.GetRouteData(HttpContextBase httpContext) +178 System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +233 Kendo.Mvc.Infrastructure.Implementation.RouteDataCache.RouteDataFactory(String url) +59 Kendo.Mvc.Infrastructure.Implementation.<GetRouteData>c__AnonStorey1B.<>m__26() +13 Kendo.Mvc.Infrastructure.Implementation.NoCache.Get(String key, Func`1 defaultValueFactory) +11 Kendo.Mvc.Infrastructure.Implementation.RouteDataCache.GetRouteData(String key, String url) +98 Kendo.Mvc.Infrastructure.Implementation.AuthorizationContextCache.GetAuthorizationContext(RequestContext request, String controllerName, String actionName, RouteValueDictionary routeValues) +362 Kendo.Mvc.Infrastructure.Implementation.ControllerAuthorization.IsAccessibleToUser(RequestContext requestContext, String controllerName, String actionName, RouteValueDictionary routeValues) +55 Kendo.Mvc.Infrastructure.Implementation.NavigationItemAuthorization.IsAccessibleToUser(RequestContext requestContext, INavigatable navigationItem) +186 Kendo.Mvc.UI.NavigatableExtensions.IsAccessible(INavigatable item, INavigationItemAuthorization authorization, ViewContext viewContext) +29 Kendo.Mvc.UI.NavigationItemContainerExtensions.WriteItem(TItem item, TComponent component, IHtmlNode parentTag, INavigationComponentHtmlBuilder`1 builder) +197 Kendo.Mvc.UI.<WriteHtml>c__AnonStorey76.<>m__247(MenuItem item) +24@(Html.Kendo().Menu() .Name("mn-case") .Items(items => {items.Add().Text("Dashboard").Action("Index", "Dashboard", new { caseId = caseId, area="Case" });}))context.MapRoute("CaseIndex", "Case/{caseId}/{controller}", new { action = "Index"}, new RouteValueDictionary { { "httpMethod", new HttpMethodConstraint("GET") }} );items.Add().Text("Dashboard").Url(@Url.Action("Index", "Dashboard", new { caseId = caseId, area="Case" }));
function expandAndSelectNode(id, treeViewName) { // get the Kendo TreeView widget by it's ID given by treeviewName var treeView = $(treeViewName).data('kendoTreeView'); // find node with data-id = id var item = $(treeViewName).find("li[data-id='" + id + "']").find(".k-in"); // expand all parent nodes $(item).parentsUntil('.k-treeview').filter('.k-item').each( function (index, element) { $(treeViewName).data('kendoTreeView').expand($(this)); } ); // get DataSourceItem by given id var nodeDataItem = treeView.dataSource.get(id); //get node within treeview widget by uid var node = treeView.findByUid(nodeDataItem.uid); $(treeView).select(node); //treeView.select(".k-item:last");}columns.Bound(e => e.BookValue).Title("Book Value ($)") .ClientFooterTemplate("<div class=aright>#=sum#</div>").Format("{0:N}")public class BranchesViewModel{ public IQueryable<BranchViewModel> Branches { get; set; } public IEnumerable<RegionViewModel> Regions { get; set; }}public class BranchViewModel{ [Editable(false, AllowInitialValue = true)] [Required] [Display(Name="Id")] [HiddenInput(DisplayValue = false)] public int BranchId { get; set; } [Display(Name="GL Code", Order=2)] [Required] public string GLCode { get; set; } [Display(Name="Region", Order=3)] [Required] [UIHint("RegionForeignKey")] public int RegionId { get; set; } [Display(Name="Branch Name", Order=1)] [Required] public string BranchName { get; set; }}public class RegionViewModel{ public int RegionId { get; set; } public string RegionName { get; set; }}<h2>Branches</h2>@(Html.Kendo().Grid<BranchViewModel>() .Name("Branch") .Columns(col => { col.Bound(m => m.BranchName); col.Bound(m => m.GLCode).Width(200); col.ForeignKey(m => m.RegionId, Model.Regions, "RegionId", "RegionName").Width(180); col.Command(cmd => { cmd.Edit(); cmd.Destroy(); }).Width(180); }) .ToolBar(toolBar => toolBar.Create().Text("New Branch")) .Editable(edit => { edit.Mode(GridEditMode.InLine); edit.DisplayDeleteConfirmation(true); }) .Sortable() .DataSource(dataSource => dataSource .Ajax() .Batch(true) .ServerOperation(false) .Events(events => events.Error("errorHandler")) .Model(model => model.Id(b => b.BranchId)) .Read(read => read.Action("Branch_Read", "Branch")) .Create(create => create.Action("Branch_Create", "Branch")) .Update(update => update.Action("Branch_Update", "Branch")) .Destroy(destroy => destroy.Action("Branch_Delete", "Branch")) ))@model int@(Html.Kendo().DropDownListFor(m => m) .BindTo((SelectList)ViewData[ViewData.TemplateInfo.GetFullHtmlFieldName("") + "_Data"]))public ActionResult Index(){ var model = new BranchesViewModel { Branches = _branchRepository.Get().Select( b => new BranchViewModel { BranchId = b.Id, GLCode = b.GLCode, BranchName = b.BranchName, RegionId = b.RegionId } ), Regions = _regionRepository.Get().Select( r => new RegionViewModel { RegionId = r.Id, RegionName = r.RegionName } ).ToList() }; return View(model);}// Ajax for branchespublic ActionResult Branch_Read([DataSourceRequest] DataSourceRequest request){ var branches = _branchRepository.Get().Select( b => new BranchViewModel { BranchId = b.Id, GLCode = b.GLCode, BranchName = b.BranchName, RegionId = b.RegionId } ); return Json(branches.ToDataSourceResult(request));}