insertSheet method

Hello, 

I'm trying to use the insertSheet method in my controllers Index View but whenever I try I get this error:

I have the controller and view set up exactly like the Documentation. I just can't figure out what's wrong.

Thanks.


1 Reply 1 reply marked as answer

SP Sangeetha Priya Murugan Syncfusion Team January 20, 2021 03:59 PM UTC

Hi Austin, 
 
Thank you for contacting Syncfusion support. 
 
We have checked your reported issue and we confirmed this as defect and the fix will be available in our Essential Studio Volume 4 SP1 release, we appreciate your patience until then. You can track the status of this defect using below link from our feedback portal,  
 
 
Meanwhile, you can use this method by without providing the index argument as like as below. 
 
var spreadsheet = document.getElementsByClassName('e-spreadsheet')[0].ej2_instances[0]; 
         spreadsheet.insertSheet([{ 
            name: 'Inserted Sheet' 
        }]); 
 
Could you please check the above details and get back to us, if you need any further assistance on this. 
 
Regards, 
Sangeetha M 


Marked as answer
Loader.
Up arrow icon