Posted 28 January 2019, 7:35 am EST
In our application we have multiple pages, on each page we have different wijmo grids.
now to all those grids we want to have same context menu to export grid data to excel.
so when i added context menu in component html file, like below its working.
<wj-flex-grid [(itemsSource)]=“testData” [wjContextMenu]=“testMenu”>
<wj-menu #testMenu class=“ui-widget” (itemClicked)=“itemClicked(testGrid,$event)”>
<wj-menu-item [value]=“‘exportToExcel’”>
Export to Excel
This will export grid data to Excel
now as i will be using same context menu in all grids, thought of creating generic component menu component, and adding generic component in file, its not showing context menu.
<app-grid-context-menu #testMenu>
