CellEdit Event on Edit Mode Row

While Edit Mode is Row, it does not trigger CellEdit event. My requirement is I want to disable the whole row for editing except 1 particular column.

Is it possible ? 


1 Reply 1 reply marked as answer

PS Pon Selva Jeganathan Syncfusion Team April 4, 2022 09:57 AM UTC

Hi Parth,

Thanks for contacting syncfusion forum.


Query: While Edit Mode is Row, it does not trigger CellEdit event.


By default, the cellEdit event is triggered only if the edit mode is Cell and Batch.


Query: My requirement is I want to disable the whole row for editing except 1 particular column.


We achieved your requirement by using allowEditing property of the column. You can disable editing for a columns by defining the allowEditing property as false in the column definition.


Please refer to the below code snippet,

<ejs-treegrid

    #treegrid

    [dataSource]="data"

    height="400"

    childMapping="subtasks"

    [treeColumnIndex]="1"

    [editSettings]="editSettings"

    [toolbar]="toolbar"

  >

    <e-columns>

……

      <e-column

        field="startDate"

        headerText="Start Date"

        width="80"

        format="yMd"

        textAlign="Right"

        [allowEditing]="false"

      ></e-column>

 


Please refer to the below sample,

https://stackblitz.com/edit/angular-bpwjqh-dt8rne?file=app.component.html


Please refer to the below API documentation,

https://ej2.syncfusion.com/documentation/api/treegrid/column/#allowediting


Kindly get back to us for further assistance.


Regards,

Pon selva


Marked as answer
Loader.
Up arrow icon