It would be great to have the ability to have to conditionally set behavior for columns and buttons.
On a Grid with this:
.Columns(columns =>
{
columns.Bound(b => b.IsEditable).Hidden(true);
columns.Bound(b => b.Id);
columns.Bound(b => b.Description).Width(200);
columns.Command(c=>
{
c.Edit();
});
})
Today if I want to hide a button depending on a cell value I need to do it on databound event.
It would be great to have the option to set something like:
command.Edit().Display(p => p.IsEditable);
For a column, it would be nice to have something like:
columns.Bound(b => b.Description).Width(200).Editable(p => p.IsEditable);