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

ASP.NET MVC KENDO GRID WITH CHECKBOX

1 Answer 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Palanisamy
Top achievements
Rank 1
Palanisamy asked on 18 Nov 2020, 12:00 PM

HI,

We are using asp.net mvc kendo grid with checkbox.

 

For checkbox we are using below line.

                        columns.Select().Width(50);

 

But very difficult to control checkbox events (onchange)

 

Most of the time not working. I need to get all checked and unchecked rows in onchange event while changing. But not able to control. We can get selected rows. But not unchecked rows. While unchecking I should get the unchecked rows.

Please help me to achieve.

 




            )
        }

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 20 Nov 2020, 08:11 AM

Hello Palanisamy,

In order to achieve the desired behavior, I would recommend using the "Change" Event of the Kendo UI Grid. In the Event handler, get all unselected rows using the following implementation:

.Events(e => e.Change("onChange"))

function onChange() { var unselectedRows = $("#grid > .k-grid-content tr").not($(".k-state-selected")) console.log(unselectedRows); }
Find attached a sample project with the needed implementation included.

Let me know if further assistance is needed.

 

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