Export to Excel not working

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)


1 Reply

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team March 8, 2022 04:08 PM UTC

Hi Parth Rawal, 

Query#:- 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

We have checked your reported problem by preparing sample but we are unable to replicate the problem at our end(Exporting works fine). Refer to the sample link:- 
 
We need some more additional details to find the cause of the issue. Share us the following details. 
 
  1. Complete TreeGrid code example.
  2. Exact scenario you have faced the issue on Exporting(Multiple TreeGrid on sample page or any other).
  3. Detailed Explanation of your issue.
  4. Screenshot/Video Demo to demonstrate the issue.
  5. If possible replicate it in the above sample and revert us back.
 
Regards, 
Farveen sulthana T 


Loader.
Up arrow icon