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.

Preferred solution

Code shown below will work in all cases except when deferred rendering is enabled in client-side processing mode with deferRender: true option. In that case see alternative solution below.

Example

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

Alternative solution: Deferred rendering

Solution demonstrated below should be used if you enabled deferred rendering in client-side processing mode with deferRender: true option.

Example

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