How to reproduce:
1.- Make a grid with master detail
2.- In master detail make a grid
3.- Create a context menu with options for the grid with a method so that when you click an option from the context menu it does something (console.log('Hello') for example)
4.- Create a context menu with options for the subgrid with another method so that when you click an option from the context menu it does something different (console.log('Goodbye') for example)
5.- When you click on an option from the context menu of the subgrid it will not call its function (console.log ('Goodbye')), it will call the function that triggers the context menu of the grid that contains the subgrid (console.log('Hello')
Even if a function is not set in the context menu of the subgrid it calls the function from the top context menu.
I solved it using 1 function for all context menus, but it doesn't seem like the best way to me
Hi Adolfo,
If the requirement is to use two separate kendo-contextmenu items for the master and details grids, then this can be achieved following the example at the following article:
For the purpose there should be two separate instance of the kendo-contextmenu and the required one should be used when clicking the corresponding master or detail Grid. Please check the following example demonstrating such implementation:
https://stackblitz.com/edit/angular-vdddv1?file=app/app.component.ts
Please let me know in case I am missing something. Thank you.
Regards,
Svetlin
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.