MudDataGrid SelectColumn with MultiSelection #7332
Replies: 4 comments 5 replies
-
Should work correctly, if you set multiselection false and bind selecteditems in the latest mudblazor: https://try.mudblazor.com/snippet/cYGHuWbbnhJKMUuL Also relevant issue: #7195 |
Beta Was this translation helpful? Give feedback.
-
Recently #6547 was merged, introducing a |
Beta Was this translation helpful? Give feedback.
-
Indeed. It is only now that I notice that the Ideally it should behave the same as |
Beta Was this translation helpful? Give feedback.
-
I found a workaround for the current bug with the |
Beta Was this translation helpful? Give feedback.
-
I have a
MudDataGrid
that contains aSelectColumn
(which doesn't appear to be well documented anywhere, although it appears in the examples) but it seems that it doesn't quite work correctly. IfMultiSelection
isfalse
it still allows for multiple checkboxes to show as checked, but theSelectedItems
property only has a single item in the collection. Additionally, only the checkbox in theSelectColumn
allows to modify theSelectedItems
. However, if I setMultiSelection
totrue
, the collection ofSelectedItems
allows for more than one item in the collection, however it has the side effect that interacting with any control on the row toggles whether or not it is "selected".MultiSelection
is false, theSelectionColumn
would useMudRadioButton
and notMudCheckbox
as is the general convention when options are mutually exclusive.MultiSelection
and that theCheckbox
in theSelectColumn
would be the only control that modifies theSelectedItems
Beta Was this translation helpful? Give feedback.
All reactions