Trying to add custom item in a TreeGridComponent's toolbar

Hi,

i have an issue when i'm trying to add a custom component in a treeGridComponent's toolbar

TypeError: Cannot read property 'concat' of undefined


...ode_modules\@syncfusion\ej2-grids\src\grid\actions\toolbar.js line 180

Toolbar.prototype.addReactToolbarPortals = function (args) {
if (this.parent.isReact && args) {
this.parent.portals = this.parent.portals.concat(args); //here
this.parent.renderTemplates();
}
};

when i modify locally by this, it works fine :

Toolbar.prototype.addReactToolbarPortals = function (args) {
if (this.parent.isReact && args) {
this.parent.portals = (this.parent.portals || []).concat(args); //here
this.parent.renderTemplates();
}
};

i'm using 

"@syncfusion/ej2-grids": "19.2.47",


Can you fix this package please ?

Thanks in advance


3 Replies

PS Pon Selva Jeganathan Syncfusion Team July 19, 2021 01:52 PM UTC

Hi Luca,   
 
Thanks for contacting Syncfusion forum. 
 

Query: Trying to add custom item in a TreeGridComponent's toolbar

We have checked your query by preparing sample(custom item in a TreeGridComponent's toolbar with mentioned version), we are able to reproduce the issue at our end. And we need time to validate the issue and we will provide further details on 21st July 2021.   
 
Until then we value your patience. 

Regards,   
Pon selva   



PS Pon Selva Jeganathan Syncfusion Team July 20, 2021 01:33 PM UTC

Hi Luca,   
 
Thanks for your patience. 
 
On further validation, we have considered this issue(“A script error was thrown when using the Toolbar template in the treegrid ) as bug. Thank you for taking the time to report the issue and helping us improve our product. At Syncfusion we are committed to fixing all the validated defect (subject to technological feasibility and Product Development Life Cycle) and including its fix in our subsequent release. The fix for the issue will be included in first week of August 2021 patch release.    
    
You can track the current status of your request, review the resolution timeline and contact us for any further inquiries through this link.        
 
Note: To view the above feedback, kindly login into your account.  
 
Until then we value your patience. 
    
Regards,   
Pon selva   



PS Pon Selva Jeganathan Syncfusion Team August 6, 2021 01:10 PM UTC

Hi Luca,   
 
Thanks for your patience. 
 
We are glad to announce that fix for the issues A script error was thrown when using the Toolbar template in the treegrid ” has been rolled out in our patch release. We request you to update to our latest version "19.2.51”. 
 
Kindly get back to us for further assistance. 
    
Regards,   
Pon selva   


Loader.
Up arrow icon