Going back to 2020 threads I researched and there is still no way I can tell for easily hiding a GridCommandButton (even when using context)?
What is odd, the "ShowInEdit" will indeed hide the GridCommandButton if row selected and in edit mode ... so it seems you folks have a way to control visibility but no property for it?
So I'm assuming after 4 years of Blazor UI support, a "visibility" property will NOT happen?
Currently this is what I use to "Enable" a GridCommandButton but that's not really what I want to do, I don't want to show it.
<GridCommandColumn Context="bookingEquipmentDeleteCommandContext" Width="8rem">
@{
var equipment = bookingEquipmentDeleteCommandContext as BookingEquipmentModel;
}
<GridCommandButton Command="Delete" OnClick="@EquipmentDeleteCommandHandler" Class="btn-red" Icon="@FontIcon.Trash" Enabled="@(string.IsNullOrEmpty(equipment?.EquipmentCode))" ShowInEdit="false">Delete</GridCommandButton>
</GridCommandColumn>
I would think something as simple as "Visible" would be easy to implement, especially now that we're on version 7 on the control suite?
Rob.