- Home
- Forum
- Angular - EJ 2
- Disable editable in specific columns
Disable editable in specific columns
Hi All,
I want to know how to disable some columns editable when we using edit settings for whole grid. Need to disable on cell click.
EditSettings = { allowEditing: true, allowAdding: true, mode: 'Normal' };
Thank you
SIGN IN To post a reply.
6 Replies
MS
Madhu Sudhanan P
Syncfusion Team
April 2, 2019 04:59 AM UTC
Hi Neo,
Thanks for contacting Syncfusion support.
You can use the column.allowEditing property to disable edit option for a column.
Regards,
Madhu Sudhanan P
TS
Thavasianand Sankaranarayanan
Syncfusion Team
April 2, 2019 05:00 AM UTC
Hi Shamil,
Greetings from Syncfusion support.
We have already discuss about “how to disable editing for a particular column in Grid” query in the following documentations.
Regards,
Thavasianand S.
Hi Neo,
Thanks for contacting Syncfusion support.
You can use the column.allowEditing property to disable edit option for a column.
Regards,Madhu Sudhanan P
Hi Madhu,
I know 'column.allowEditing' property can use for it. But I want to know how to use when we creating columns dynamically (Using 'Column' property)
Thanks you.
PS
Pavithra Subramaniyam
Syncfusion Team
April 3, 2019 12:24 PM UTC
Hi Neo,
Thanks for contacting Syncfusion support.
Based on your requirement we have prepared a sample with dynamic column binding with enable/ disabled editing for particular column.
If the above sample does not meet your requirement please share the following details. It will be helpful to provide a better solution as soon as possible.
- Could you please explain more details about your requirement ?
- Could you please share the full Grid code example.
- In which scenario you want to set allowEditing as false in Grid column model.
Regards,
Pavithra S.
DD
Deepak Dnyandeo Wadkar
December 15, 2021 07:36 AM UTC
Hi Team,
We have customized datagrid, and placed button in one of column, in edit mode that button gets disappeared even if we apply allowEditing to false.
How to handle this and keep button as it is.
Regards,
Deepak
JC
Joseph Christ Nithin Issack
Syncfusion Team
December 16, 2021 12:44 PM UTC
Hi Deepak,
Thanks for your update.
Based on your query, you are having button in one of your column. When you edit a row the button disappears (while set allowEditing as false). You want the button to be shown in the grid even if the grid is in edit mode. Your requirement can be achieved by using the `editTemplate` property in the columns.
Please refer the below code example.
|
<e-column
headerText="Employee Image"
width="150"
textAlign="Center"
[allowEditing]="false"
>
<ng-template #template>
<button ejs-button>Normal</button>
</ng-template>
<ng-template #editTemplate>
<button ejs-button [disabled]="true">Normal</button>
</ng-template>
</e-column>
|
Please find the attached sample and revert for more queries.
Regards,
Joseph I
Joseph I
SIGN IN To post a reply.
- 6 Replies
- 6 Participants
-
NE Neo
- Apr 1, 2019 01:45 PM UTC
- Dec 16, 2021 12:44 PM UTC