New to Telerik UI for ASP.NET Core? Download free 30-day trial

Checkbox selection

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Theme Builder
  • checkbox_selection.cshtml
  • Checkbox_SelectionController.cs
  • ProductService.cs
  • ProductViewModel.cs
CONSOLE LOG Clear log

Also available for:

API REFERENCE

Description

To enable the checkbox selection functionality you should define a 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 using the PersistSelection(true) method.


More about the selectable feature of the Telerik Grid for ASP.NET Core

More about the Telerik Grid for ASP.NET Core

Support & Learning Resources