mdDataTable
mdDataTable copied to clipboard
Clearing selected rows
Hi Is there a way to clear all selected rows (not from ui - but with code)?
No, the concept is not there yet for clearing the selected rows. But good idea, I'll think about it because it's definitely something which would be convenient to use..
Thanks. I saw on the md-data-table.js file that if you pass the value "false" to the "TableDataStorageService.prototype.setAllRowsSelected" function (line 350) it should do it.
@iamisti -- When you use "selectable-rows" with pagination, the header checkbox is set to true on all pages, trying to find a way to clear this on next page..
Using $('th md-checkbox').removeClass('md-checked'); on pagination event call but will not work properly:(