How to bind to allowDeleting in editSettings

I need to be able to bind the editSettings' allowDeleting to property, not just the editSettings.


IE: Instead of using the following:

<ejs-grid #normalgrid id='Normalgrid' [dataSource]='data' [editSettings]='editSettings' >


Use something like:

<ejs-grid #normalgrid id='Normalgrid' [dataSource]='data' [editSettings.allowDeleting]='isEditAllowed' >


I found similiar functionality in blazer post:
How to dynamically change grid edit settings after the grid is rendered. | Blazor Forums | Syncfusion


2 Replies

DR David Rose January 19, 2024 10:11 PM UTC

I found a solution:

<ejs-grid #normalgrid id='Normalgrid' [dataSource]='data' [editSettings]={allowDeleting:isEditAllowed,allowAdding:isEditAllowed>


Pretty clean and much better than a code behind object.



GE Getsy Edwin Syncfusion Team January 23, 2024 05:30 AM UTC

Hi Davi,

Thanks for the update!! Please feel free to contact us if you need any other assistance.

Regards,

Getsy


Loader.
Up arrow icon