Hi Toan,
Greetings from Syncfusion support.
Based on your query, you want to enable and disable the built-in toolbar items of the EJ2 grid. Your requirement can be achieved using the `enableToolbarItems` method of the EJ2 grid.
Please refer the below code example.
|
this.gridInstance.enableToolbarItems(
[this.gridInstance.element.id + '_excelexport'],
); |
Note: Since we automatically enable and disable the toolbar items used for CRUD operations, you cannot enable and disable those items using the above method, instead you can enable and disable the feature using the respective properties.
Please refer the below code example.
|
this.gridInstance.editSettings.allowEditing = false;
this.gridInstance.editSettings.allowDeleting = false; |
Please find the attached sample and revert for more queries.
Regards,
Joseph I.