By default, multiple selection is performed using the ctrl or shift key. You can also perform multiple selection by using Checkboxes that are bound to the Grid rows or using the checkbox bound to the header. Solution The Checkbox can be bound to the Grid rows using the template property of the Grid and to the Grid header using the headerTemplateID property of the Grid. The template property is used to bind unbound column to the Grid. The headerTemplateID is used to add template within the header element. Example The following example explains in detail on how to perform multiple selection of records using Checkboxes.
JS
JS MVC ASP.NET
JS
JS
JS
The following screenshot displays the result. Figure 1: Multiple selection in Grid using Checkboxes Figure 2: Grid content is selected using the header checkbox |
This page will automatically be redirected to the sign-in page in 10 seconds.