Data_table - select all rows

Hi there! I tried this method and it works if there is no filtering on the datatable.

There is a problem where once I use the native filter to filter the datatable and click on this button, the checkboxes will not be tick properly even though the indices for the selected row correspond to the number of rows appearing in the datatable after filter. For example, once I filter and click on the button, it will not tick on the rows that appear in the filtered datatable.

Based on the callbacks, this method continue to tick the checkboxes of the ORIGINAL datatable data (if after filter there are 32 rows, then once I click on this button it will check the first 32 rows from the original data in the datatable instead of the filtered data).

Anyone has any idea how to workaround?

Thanks.

2 Likes