By default, clrDgSelected
is cleared whenever a filter is applied to the datagrid.
[clrDgPreserveSelection]
input with value true
to the datagrid.
[clrDgPreserveSelection]
is enabled, some selected items may not be visible, the
developer must display some kind of preview or confirmation before performing any action on the selected objects.
Selected users: No user selected. {{user.name}}
Selected users: No user selected. {{user.name}}
Selected users: No user selected. {{user.name}}
Selected users: No user selected. {{user.name}}
We also need to ensure that when the clrDgItems
input changes that our selection is not
lost.