Reset table selected record after firing search from filter

Hi Team ,

Is their is common way to trigger reset table selected column after search filter is fired and new collection has been loaded inside table .

As currently table keeps the same state for the selected column even after new search with new data loaded inside it .

Is subscribing to DataContainer Collection Change Event and then set the selected value of the table is the right way or their is any other proper way to use it .

Thanks

Hello @abd.ibrahim.allam

The way you described above is correct. You can subscribe to CollectionContainer.CollectionChangeEvent and then call Table#setSelected(null) to reset the selected table rows.

Regards,
Gleb

1 Like