I have a column with a button in it. When I click to edit the row it turns into a textbox. is there an option to disable editing for a column?
I treid binding it to allowediting with a value of false, but it does not work.
I actually do now notice that the textbox is read only when I applied the allowEditing property, but I just wanted to clarify, what I actually would like is not to show a textbox at all in edit mode.
|
[App.component.html]
<ejs-treegrid [dataSource]='data' allowPaging='true' childMapping='subtasks' height='350' [treeColumnIndex]='1'
[editSettings]='editSettings' (actionComplete)='actionComplete($event)'>
<e-columns>
<e-column field='taskID' headerText='Task ID' width='70' textAlign='Right'></e-column>
<e-column field='taskName' headerText='Task Name' width='200'></e-column>
<e-column headerText='' [allowEditing]=false>
<ng-template #template let-data>
<div>
<button ejs-button class="DefaultButton" (click)="onDelete($event)">
Delete
</button>
</div>
</ng-template>
</e-column>
</e-columns>
</ejs-treegrid>
|
|
[App.component.ts]
|