When to Use

When you want to select multiple models at a time for batch operations.

Usage

To enable the SelectAll extension, you simply have to add a new column to your column definition like so:

You can also use this extension in concert with Backbone.PageableCollection. In which case SelectAll will select across all pages by default, whether the PageableCollection is in server, client or infinite mode. See this example.

Manipulating Selections Programatically

At any point during the lifetime of your program, if you'd like to get an array of the currently selected models after you've rendered your grid, you can easily do so:

Pro Tip

Each SelectRowCell will trigger a backgrid:selected event directly from the selected models when its checkbox value changes, so if you want to react to those events, you can attach your event handlers on the collection.

See the API documentation for details.