w2grid.selectAll

Selects all records in the grid.
selectAll()
Returns undefined.

Description

Selects all records in the .records array and refreshes them on the screen. The record is identified by the .recid property, which is a required property for each record object. Some records might be not shown, but they will still be selected. For example, if you have a local data source and in the list you see only first page, .selectAll() will still select all records. The method emits .onSelect event once with recid parameter set to 'all'.
If you have grid defined in the following way: You can select all records: There are two events related to selection of records: onSelect and onUnselect. Calling .selectAll will trigger onSelect event for each record.

User Comments

comments powered by Disqus