Select checkboxes on page load

Examples below demonstrate how to check some checkboxes once table has been initialized.

This is possible with cell().checkboxes.select() API method.

Solution 1

Code shown below should work in all cases except HTML (DOM) data source or when deferred rendering is enabled in client-side processing mode with deferRender: true option. In that case see solution 2 below.

Example

In the example below checkboxes and row selection are selected for all employees with Software Engineer position.

Solution 2

Solution demonstrated below should be used in one of the following cases:

Example

In the example below checkboxes and row selection are disabled for all employees with Software Engineer position.