Hi,
Is there a way to remove the Delete
when right clicking on a resource (not an event but the actual label of the resource)?
Sure, it is described here: https://bryntum.com/docs/grid/guide/Grid/customization/contextmenu#customizing-the-menu-items
Example:
const grid = new Grid({
features : {
// This will enable Filter feature and all its menu items in both cell and header menus
filter : true,
cellMenu : {
items : {
// Remove "Delete record" default item
removeRow : false,
// Remove "Before" and "After" items provided by Filter feature to only have "On" option for Date columns
filterDateBefore : false,
filterDateAfter : false
}
},
headerMenu : {
items : {
// Remove "Edit filter" item provided by Filter feature to only have "Remove filter" option in case a filter is applied to the column field
editFilter : false
}
}
}
});