Hi
Export to excel in treegrid was working and in fact on the same page it's working for other Grid but it's not working for treegrid. Below is my code
Any thoughts ?
<ejs-treegrid #treegridView id="treegridView" [dataSource]='dstreeView' [treeColumnIndex]=1 height='650' idMapping=ID
parentIdMapping=ParentItem [allowFiltering]='true' [filterSettings]="filterSettings" [toolbar]='treeViewtoolbarOptions' showColumnChooser='true'
(toolbarClick)="treegridToolbarClick($event)" [allowResizing]='true' [gridLines]='Both'
childMapping='childrens' [columns]='treegridColumns' (rowDataBound)="gridColor($event)">
ejs-treegrid>
this.treegridView.excelExport();
main.js?222022:sourcemap:445531 ERROR TypeError: Cannot read properties of undefined (reading 'Map')
at TreeGridComponent.excelExport (main.js:521822:43)
at CapacityPlanningWebPartComponent.treegridToolbarClick (main.js:231206:35)
at CapacityPlanningWebPartComponent_ng_template_15_Template_ejs_treegrid_toolbarClick_29_listener (main.js:230322:360)
at executeListenerWithErrorHandling (main.js:454521:16)
at Object.wrapListenerIn_markDirtyAndPreventDefault [as next] (main.js:454559:22)
at SafeSubscriber.__tryOrUnsub (main.js:229354:16)
at SafeSubscriber.next (main.js:229293:22)
at Subscriber._next (main.js:229243:26)
at Subscriber.next (main.js:229220:18)
at EventEmitter_.next (main.js:385881:29)