or
Menu items #1 "Admin Home" and #5 "Help" work fine, but #2, 3 & 4 with submenus are not expanding.
@(Html.Kendo().Menu().Name("AdminMenu").OpenOnClick(true).Items(items =>{ items.Add().Text("Admin Home") .ImageUrl(Url.Content("~/Content/icons/baseball.png")) .HtmlAttributes(new { style = "width:170px" }) .ImageUrl("~/Content/Icons/ajax.png") .Action("Index", "Admin"); items.Add().Text("Manage") .ImageUrl(Url.Content("~/Content/icons/golf.png")) .HtmlAttributes(new { style = "width:170px" }) .Items(children => { children.Add().Text("Donors").ImageUrl("~/Content/Icons/rep.png").Action("ManageDonors", "Admin"); children.Add().Text("Recipients").ImageUrl("~/Content/Icons/sitefinity.png").Action("ManageRecipients", "Admin"); children.Add().Text("Friends").ImageUrl("~/Content/Icons/test.png").Action("ManageFriends", "Admin"); children.Add().Text("Admin Guys").ImageUrl("~/Content/Icons/win.png").Action("ManageAdmin", "Admin"); children.Add().Text("Password Reset").ImageUrl("~/Content/Icons/wpf.png").Action("PasswordReset", "Admin"); }); items.Add().Text("Marketing") .ImageUrl(Url.Content("~/Content/icons/golf.png")) .HtmlAttributes(new { style = "width:170px" }) .Items(children => { children.Add().Text("Email").ImageUrl("~/Content/Icons/rep.png").Action("ManageFriends", "Admin"); children.Add().Text("Newsletter").ImageUrl("~/Content/Icons/sitefinity.png").Action("Newsletter", "Admin"); children.Add().Text("Announcements").ImageUrl("~/Content/Icons/test.png").Action("Announcements", "Admin"); children.Add().Text("New Members").ImageUrl("~/Content/Icons/win.png").Action("NewMembers", "Admin"); children.Add().Text("Current Web Site").Url("http://www.life-renewal.org"); }); items.Add().Text("My Mail") .ImageUrl(Url.Content("~/Content/icons/golf.png")) .HtmlAttributes(new { style = "width:170px" }) .Items(children => { children.Add().Text("Email").ImageUrl("~/Content/Icons/rep.png").Action("MyMail", "Admin"); children.Add().Text("Tasks").ImageUrl("~/Content/Icons/sitefinity.png").Action("MyTasks", "Admin"); children.Add().Text("Calendar").ImageUrl("~/Content/Icons/test.png").Action("MyCalendar", "Admin"); }); items.Add().Text("Help") .Action("Help", "Admin") .HtmlAttributes(new { style = "width:170px" }) .ImageUrl("~/Content/Icons/wpf.png");}))@using Kendo.Mvc.UI @{ var addressList = Model.DataList as List<Intelli.Data.Parties.EFDAL.Entity.GeoAddress>; } @(Html.Kendo().Grid(addressList) .Name("GridPartyGeoAddresses") .Columns(columns => { columns.Bound(p => p.ID).Title("ID").Hidden(true); columns.Bound(p => p.Address).Title("Address").Width(160); columns.Bound(p => p.Region).Title("Region").Width(80); columns.Bound(p => p.Zipcode).Title("Zipcode").Width(80); columns.Command(commands => commands .Custom("btnviewgeoaddress") .Text("View") .Click("viewgeoaddress") .HtmlAttributes(new { style = "text-align: center" })); columns.Command(commands => commands .Custom("btndeletegeoaddress") .Text("Remove") .Click("deletegeoaddress") .HtmlAttributes(new { style = "text-align: center" })); }) .Scrollable(scr => scr.Enabled(true).Height(300)) .Sortable(builder => builder.Enabled(true)) .Resizable(resizing => resizing.Columns(true)) .Selectable() .DataSource(dataSource => dataSource .Ajax() .ServerOperation(false) ) ).Selectable() .DataSource(dataSource => dataSource .Ajax() .ServerOperation(false) ) @(Html.Kendo().Grid<EntityVM>() .Name("EntitesGrid") .HtmlAttributes(new { style = "height:750px;width:100%;scrollbar-face-color: #eff7fc;" }) .Columns(columns => { columns.Bound(e => e.Id).Hidden().IncludeInMenu(false); columns.Bound(e => e.EntityVersionId).Hidden().IncludeInMenu(false); columns.Bound(e => e.Name).Width("70%").Title("Entity Name"); columns.Bound(e => e.EIN).Width("30%"); }).ToolBar(toolBar => toolBar.Template("<a class='k-button k-button-icontext k-grid-add' id='addEntity'><span class='k-icon k-add'></span>Entity</a>" + "<a class='k-button k-button-icontext' id='editEntity'><span class='k-icon k-edit'></span>Edit</a>")) .DataSource(dataSource => dataSource .Ajax().ServerOperation(false) .Model(model => model.Id(e => e.Id)) .Read(read => read.Action("GetEntities", "Entity", new { projectId = Request.QueryString[DataKeyNameConstants.ProjectId] }))) .Sortable() .Scrollable() .Filterable() .Resizable(resize => resize.Columns(true)) .Reorderable(reorder => reorder.Columns(true)) .ColumnMenu() .Selectable(s => s.Mode(GridSelectionMode.Multiple)) .Events(events => events.Change("entSelChange")) )now, I need to get the value of EntityVersionId from the selected Row. but not sure how to do it.
here's my javascript function
$("#editEntity").click(function () { var entityGrid = $("#EntitesGrid").data("kendoGrid"); // what should I do from here});