Hi there I would like to change the icon depending on the value of a field in the table. Of course I can do this in a column tamplate, but I cannot do it with a command column.
My code for "normal" column
<GridColumn Field="TicketDocumentName" HeaderText="Doc" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Left" Width="28">
<Template>
@{
var data = context as Ticket;
if (data.TicketDocumentName != null)
{
<SfButton IconCss="e-icons e-react-viewdoc-icon" @onclick="@(args => CustomAction(data))"></SfButton>
} else
{
<SfButton IconCss="e-icons e-react-adddoc-icon" @onclick="@(args => CustomAction(data))"></SfButton>
}
}
</Template>
</GridColumn>