Open tobbi opened 4 years ago
@tobbi
Hello for now this is not supported scenario. For now you can create your own component which you can render into every column.
Example config.
RenderFragment<Customer> customerEmailComponent = (Customer customer) => delegate (RenderTreeBuilder rendererTreeBuilder)
{
var internalBuilder = new BlazorRendererTreeBuilder(rendererTreeBuilder);
internalBuilder
.OpenElement(HtmlTagNames.H4)
.AddContent(customer.Email)
.CloseElement();
};`
Is it possible to set the CSS class of the row depending on the value of one of the properties of my data row?
For example: If (row.IsValid) // Set CSS class "success" else // Set CSS class "failure"