selectAll(fireEvent: Boolean);
fireEvent. Indicates whether table selection change event must be fired. Available Values:
true. It is required to fire table selection change event (default).
false. It is not required to fire table selection change event.
The selectAll method selects all table rows.
To execute the example, the HTML page must contain the DataGrid named grid (see Example of Creating the DataGrid Component). Select all table rows:
// Get table selection object var selection = grid.getSelection(); // Select all table rows selection.selectAll();
After executing the example all table rows are selected:
The identical result may be obtained if the strings are replaced in the example:
// Select all table rows selection.selectAll();
with the following code:
// Select all table rows by method of the PP.Ui.DataGrid class grid.selectAll();
Remove table row selection:
// Remove table selection selection.clear();
As a result, table returns to its initial form. The identical result may be obtained if the strings are replaced in the example:
// Remove table selection selection.clear();
with the following code:
// Get table object and remove row selection by the clearSelection table object method selection.getDataGrid().clearSelection();
See also: