angular-ui/ui-grid

Listen for select all event?

Open

#4.305 geöffnet am 1. Sept. 2015

Auf GitHub ansehen
 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (2.496 Forks)batch import
help wantedneeds: analysis

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I'm trying to implement a select all for external paging (i.e. one that selects all possible rows, even those not retrieved from the server yet). I keep a list of selected row identifiers on the client and, if needed, re-select rows when a user pages (i.e. gridRow.isSelected = true).

Is there a way to listen for when the user clicks on the select all checkmark? When the user clicks on the checkmark, I'd like to retrieve all possible row identifiers from the server and store them on the client-side. My current solution is to listen for rowSelectionChanged and rowSelectionChangedBatch and check if gridRows.length == paginationPageSize.

This is somewhat related to https://github.com/angular-ui/ui-grid/issues/1636#issuecomment-128110515

Contributor Guide