| contextMenu.html $("#Kanban").ejKanban( { …… contextMenuSettings: { enable: true, menuItems: [], // Empty the predefined menu items customMenuItems: [ // Specify custom menu items { text: "Backlog" }, { text: "In Progress", target: ej.Kanban.Target.Header }, { text: "Testing" }, { text: "Done" } ], }, }); |
Hello Buvana,
thank you so much for your answer!
I am targeting card not the column and I want to change it dynamically based on the column.
|
Html
$("#Kanban").ejKanban({
…………..
contextOpen: contextOpen, // Context open event
});
function contextOpen(e) { // Triggered when context is open
if ($(e.target).parent(".e-kanbancard")) { // Check if is it card
var kanbanContext = document.getElementById(this.element[0].id + "_Context"); // Get rendered context menu items
if ($(e.target).parents(".e-rowcell").index() === 2) { // Check the columns
kanbanContext.children[2].style.display = "none"; // Set display as none
}
} |
Hello Buvana,