Hi Michal,
From your query we suspect that you need to dynamically
change the InnerText but we couldn’t change through ngx-translate. We have
achieved your requirement using columnMenuOpen event of the TreeGrid. In
this event we have changed the text of the required Items as like suggested
below
Refer to the code below:-
App.Component.html:-
<ejs-treegrid
[dataSource]="data"
childMapping="subtasks"
showColumnMenu="true"
(columnMenuOpen)="columnMenuOpen($event)"
>
<e-columns>
<e-column
field="taskID"
headerText="Task ID"
width="100"
textAlign="Right"
></e-column>
. .
.
</ejs-treegrid>
App.Component.ts:-
columnMenuOpen(e)
{
if
(!isNullOrUndefined(e.items)) {
e.items.map(function (item) {
if
(item.text == 'Filter') {
return (item.text =
'FilterMenu'); //change
the required text
}
});
}
}
|
Sample link:- https://stackblitz.com/edit/angular-cpfe57?file=app.component.html,app.component.ts
API link:-
https://ej2.syncfusion.com/angular/documentation/api/treegrid/#columnmenuclick
Please get back to us if you need any further assistance.
Regards,
Farveen sulthana T