Hello,
I'm using a kendoMenu item as a toolbar option in a kendo grid. This worked fine until one of the newer releases and the animated dropdown panel now shows behind the grid as shown here:
https://jsfiddle.net/k1d4aufr/
Previous versions of kendo did not have this problem:
https://jsfiddle.net/jddevight/Ltgvk2sf/
I've tried setting the z-index on the animated panel and nothing works. Any ideas?
Thanks,
Matt
I am having inconsistent behavior for the Menu widget.
Sometimes, the submenu will appear below not on the typical right side. Please see attached illustration which is based on the Menu demo page.
I like to know if there is API or function to use that could recalculate a submenu position?
My version is 2021.3.1109
jQuery version: 3.6.0
I am using a Kendo Context Menu on a treeview and some other divs on the page.
Occasionally, when right clicking, I get the browser's right click menu when right clicking. Its not often, but does occur in both IE11 and Chrome. (probably 1 out of every 20 times with IE, 1 out of every 30 times with Chrome)
I've tried to narrow down when it happens by clicking in different areas of the treeview items, but there doesn't seem to be a pattern. The menu is simple: only a couple items, and is not dynamic.
I'm guessing kendo uses oncontextmenu - so this is a browser issue. I'm just seeing if you have ever seen this issue, and if there is anything that can be done to avoid it. (or do we just have to accept it)
Hi,
I am currently integrating the Tree View & context menu in Kendo UI Jquery. I would need to show different set of context menus for different category. Is there a way to do it? For 1st & 2nd level will be different context menu. 3rd level will not have any context menu.
Thanks in advance.
I have a TreeList and a connected ContextMenu. The context menu shows correctly the first time only when clicking on a TreeList row. After that however, no matter where I right-click on the page, the context menu is displayed.
@(Html.Kendo().ContextMenu() .Name("orgtreemenu") .Target("#OrganizationTreeMaintenance") .Orientation(ContextMenuOrientation.Vertical) .Filter(".k-grid-content table tbody tr[role='row']") .Events(e => e .Open("orgContextMenuOpen") .Select("orgTreemenuSelect") ) .Items(items => { items.Add() .Text("Add Organization") .HtmlAttributes(new { @id = "addorgaction" }) .Enabled(true); items.Add() .Text("Edit Name") .HtmlAttributes(new { @id = "editorgnameaction" }) .Enabled(true); items.Add() .Text("Delete Organization") .HtmlAttributes(new { @id = "deleteorgaction" }) .Enabled(true); items.Add() .Text("Move Organization") .HtmlAttributes(new { @id = "moveorgaction" }) .Enabled(false); }))
@(Html.Kendo().TreeList<UserStatViewModel>()
.Name("OrganizationTreeMaintenance")
.Columns(columns =>
{
columns.Add().Field(e => e.OrganizationName).Width(300);
columns.Add().Field(e => e.OrganizationId).Hidden(true);
columns.Add().Field(e => e.TotalUserCount).Title("Users");
columns.Add().Field(e => e.TotalDeviceCount).Title("Devices");
columns.Add().Field(e => e.LicensedUserCount).Title("Licenses");
})
.Sortable()
.HtmlAttributes(new { style = "height:500px;" })
.Events(e => e
.DataBound("onDataBoundLicenseTree"))
.DataSource(dataSource => dataSource
.Read(read => read.Action("GetOrgLicenseDetails", "home"))
.ServerOperation(false)
.Model(m =>
{
m.Id(f => f.OrganizationId);
m.ParentId(f => f.ParentOrgId).DefaultValue(0);
// m.Expanded(true);
m.Field(f => f.OrganizationName);
m.Field(f => f.TotalDeviceCount);
m.Field(f => f.ParentOrgId);
})
))
I have tried modifying the Filter on the context menu to no avail. Hoping someone can see something obvious.
Thanks and regards,
Eric Katz
How do I get the value of a FilterMenu?
Code example:
$("#filter-menu").kendoFilterMenu({I am using Kendo UI to display the dynamic menu. How do I make this as Responsive design menu without using kendoResponsivePanel? Do you have any other menu control to have this functionality? Here is my code snippet. Please advise.
@model ghi.Domain.Models.Menu.MenuItemList
@using Kendo.Mvc.UI.Fluent
@using ghi.Domain.Models.Menu
@functions{
public void addChildren(MenuItemBuilder builder, MenuData item, MenuItemList items)
{
var children = items.data.Where(m => m.MenuParentID == item.MenuID);
if (children != null)
{
builder.Items(menuItems =>
{
foreach (var child in children)
{
var menuItem = menuItems.Add().Text(child.MenuText);
addChildren(menuItem, child, items);
}
});
}
}
}
@(Html.Kendo().Menu()
.Name("menu")
.Items(menu =>
{
menu.Add().Text("Home");
foreach (var item in Model.data.Where(m => m.MenuParentID == null || m.MenuParentID == 0))
{
var builder = menu.Add().Text(item.MenuText);
addChildren(builder, item, Model);
}
}))