I'm trying to set the destroy command visible. I need the button turn to visible or invisible using a condition(The condition depends on the selection from a DropDownList column). The first time that grid load the button shows perfectly, but when the grid changed the visible function doesn't work, the button do not turn to visible or invisible.
Is there any way that I can accomplish that? Thanks
This is my code:
columns.Command(command =>
{
command.Destroy().Visible("ButtonDestroyVisible");
});
function ButtonDestroyVisible(dataItem) {
return dataItem.Status.StatusId == 1; //Set to visible when StatusId == 1
}