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

ASP.NET Core Grid Checkbox Selection

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
checkbox_selection.cshtml
Checkbox_SelectionController.cs
ProductService.cs
ProductViewModel.cs
Checkbox_Selection_TagHelper.cshtml
CONSOLE LOG Clear log

Also available for:

CLIENT-SIDE API HTML HELPER API

Description

As of the R2 2017 SP1 release, the Telerik UI for ASP.NET Core Data Grid supports a checkbox-based selection. To enable the checkbox selection functionality, define a Select column—.Columns(columns => { columns.Select(); }).

The Select column allows you to automatically select Grid rows after changing the status of the checkbox from unchecked to checked. The Data Grid component also displays a checkbox in its column header to toggle the checked (selected) state of all rows on the current page.

Additionally, the demo shows how to persist the selected items across the Data Grid pages by enabling the persistSelection.PersistSelection().

For more information about the selection feature of the component, refer to the official Telerik UI for ASP.NET Core Data Grid product documentation on selection.

Additional Apps

This Grid example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources