R2 2018 Release is here – now with modern UI for chatbots and more! See what’s new!
All Components
Theme

SASS Themes (beta)

    LESS Themes

      SASS Theme Builder

      Create new or customize SASS themes
      Launch Theme Builder

      Grid / Checkbox selection

      Console log

      Description

      As of R2 2017 SP1, а checkbox based selection is provided by the grid. To enable this functionality you should define select column as shown below:

       .Columns(columns => { columns.Select(); })

      This column allows you to select grid rows automatically after changing the status of the checkbox to checked. A checkbox is also displayed in the column header to toggle the checked/selected state of all rows in the current page.

      Additionally in the demo you can see how to persist selected items across pages. This is achieved by enabling the persistSelection as follows .PersistSelection().

      ASP.NET MVC source

      Also available for:

      • checkbox_selection.cshtml
      • Checkbox_SelectionController.cs
      • ProductService.cs

      Support & learning resources

      Grid for other technologies