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

ASP.NET MVC Grid Checkbox Selection

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
checkbox_selection.cshtml
Checkbox_SelectionController.cs
ProductService.cs
CONSOLE LOG Clear log

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

As of the R2 2017 SP1 release, the Telerik UI for ASP.NET MVC 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 MVC Data Grid product documentation on selection.

Additional Apps

This Grid example is part of a unique collection of hundreds of ASP.NET MVC demos, with which you can see all Telerik ASP.NET MVC 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 the ThemeBuilder.

Support & Learning Resources

Additional Resources