w2grid.selectNone

Unselects all selected records in the grid.
selectNone(skipEevnt)
skipEvent boolean, optional, indicates if select event should be triggered.
Returns integer, number of milliseconds it took to resize.

Description

Unselects 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 unselected. For example, if you have a local data source and in the list you see only first page, .selectNone() will still unselect all records.
If you have grid defined in the following way: You can unselect all selected records: There are two events related to selection of records: onSelect and onUnselect. Calling .selectNone will trigger onUnselect event for each record it unselects.

User Comments

comments powered by Disqus