I need to disable some toolbar buttons:
this.grid.toolbarModule.enableItems(['Grid_Add', 'Grid_Edit', 'Gird_Delete'], false); // Disable toolbar items.
It works very well but when it finishes loading at some point it re-enables the buttons.
html:
<ejs-grid #grid [sortSettings]='sortOptions' [allowSelection]="true" [allowPaging]="true" [allowGrouping]="true"
[allowSorting]="true" [pageSettings]="pageSettings" [searchSettings]="searchSettings"
[allowFiltering]="true" [allowExcelExport]='true' [filterSettings]='filterSettings'
[selectionSettings]='selectionSettings' [dataSource]='eventsData' [allowTextWrap]='true'
[editSettings]='editSettings' [toolbar]='toolbar' (actionComplete)='actionComplete($event)'
(actionBegin)='actionBegin($event)' (rowSelected)='rowSelected($event)' (dataBound)='disable($event)'>