mdDataTable icon indicating copy to clipboard operation
mdDataTable copied to clipboard

Clearing selected rows

Open roytz opened this issue 9 years ago • 3 comments

Hi Is there a way to clear all selected rows (not from ui - but with code)?

roytz avatar Jan 27 '16 14:01 roytz

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..

iamisti avatar Jan 27 '16 15:01 iamisti

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.

roytz avatar Jan 27 '16 16:01 roytz

@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.. image

Using $('th md-checkbox').removeClass('md-checked'); on pagination event call but will not work properly:(

alan-K-R avatar Dec 13 '16 12:12 alan-K-R