Mewriick / Blazor.FlexGrid

GridView component for Blazor
MIT License
198 stars 36 forks source link

Disable edit on a line depending on the value of a column #107

Closed Methraen closed 4 years ago

Methraen commented 4 years ago

Hello @Mewriick

If i have a column state for example, can i disable edit on lines that states equals false ?

Methraen commented 4 years ago

By the way, is it possible to put two arguments in the same column for example (name - description) ?

Mewriick commented 4 years ago

Hello @Methraen

disable edit cannot be done by checking item status.

Yes you can put two arguments into one column you can use this functionallity in configuration HasCompositeValueFormatter HasBlazorComponentValueRender

Or in razor page you can use

BlazorComponentColumnCollection.AddColumnValueRenderFunction

https://github.com/Mewriick/Blazor.FlexGrid/wiki/Custom-components-in-column