When i create a context menu, how do I achieve that on clicking it it opens another menu in Grid?
contextMenuItems: [
{
text: 'Copy with headers',
target: '.e-content',
id: 'copywithheader',
},
{
text: 'Export',
target: '.e-content',
id: 'Export',
items: [
{
text: 'ExcelEXport',
id: 'ExcelEXport',
},
{
text: 'PdfExport',
id: 'PdfEXport',
},
],
},
], |
When I use subMenuItems, i cant use args.rowInfo.rowData and index in "contextMenuItemClick" event anymore. It seems like it doesnt have access to those? Am I missing something? I set ".e-content" for the root menu items as target, and left it out for the submenus.