Hi,
I want to remove the "Edit" command column for specific rows. How do I do this?
Here is a picture for reference.
Thank you,
Kenney
<GridColumn HeaderText="Manage Records" Width="150">
<GridCommandColumns>
<GridCommandColumn Type="CommandButtonType.Edit" ButtonOption="@(new CommandButtonOptions() { IconCss = "e-icons e-edit",
CssClass = "e-flat editcommand" })"></GridCommandColumn>
...
</GridCommandColumns>
</GridColumn>
|
Consider that I have several command buttons of type 'CommandButtonType.None' and I want to suppress some according to a record condition.
How could I implement this?
Hi Rogerio,
Greetings from Syncfusion.
We have prepared an simple sample by using several command columns with CommandButtonType.None and we have suppressed some buttons based on the status column. Kindly check the attached sample for your reference.
|
<GridColumn HeaderText="Manage Records" Width="450"> <GridCommandColumns>
<GridCommandColumn Type="CommandButtonType.None" ButtonOption="@(new CommandButtonOptions() { Content="ViewResults" })"></GridCommandColumn> <GridCommandColumn Type="CommandButtonType.None" ButtonOption="@(new CommandButtonOptions() { Content="Delete"})"></GridCommandColumn>
<GridCommandColumn Type="CommandButtonType.None" ButtonOption="@(new CommandButtonOptions() { Content="Cancel", CssClass="e-cancel" })"></GridCommandColumn> <GridCommandColumn Type="CommandButtonType.None" ButtonOption="@(new CommandButtonOptions() { Content="Copy",CssClass = "e-update" })"></GridCommandColumn> <GridCommandColumn Type="CommandButtonType.None" ButtonOption="@(new CommandButtonOptions() { Content="View and Edit", CssClass="e-vieww" })"></GridCommandColumn>
</GridCommandColumns> |
|
|
Please let us know if you have any concerns.
Regards,
Monisha