This is a migrated thread and some comments may be shown as answers.

Select All Checkbox in MVC Kendo Grid

1 Answer 1418 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Palanisamy
Top achievements
Rank 1
Palanisamy asked on 19 Nov 2020, 11:31 AM

Hi,

 

I want to add Select All checkbox in asp.net mvc kendo grid explicitly.

 

We are using razor kendo grid.

 

If I use ClientTemplate or Client Header Template Boolean values showing. I need select all check box.

 

For columns its showing fine. but in header how to add select all checkbox explicitly. Kindly help

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 23 Nov 2020, 07:54 AM

Hello Palanisamy,

In order to achieve the desired behavior, I would recommend using a Checkbox selection. Implement a Select column and the needed functionality will be available out of the box:

    .Columns(columns =>
    {
        columns.Select().Width(50);
        columns.Bound(p => p.ProductName);
        columns.Bound(p => p.UnitPrice).Width(100);
        columns.Bound(p => p.UnitsInStock).Width(100);
        columns.Bound(p => p.Discontinued).Width(100);
    })

The approach above is represented in the following demo:

I hope this information helps.

Kind Regards,
Anton Mironov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Palanisamy
Top achievements
Rank 1
Answers by
Anton Mironov
Telerik team
Share this question
or