Deselect grid row with checkbox

1 Answer 706 Views
Checkbox Grid
Eric
Top achievements
Rank 1
Eric asked on 11 Oct 2021, 08:19 PM

I have a grid with multiple selection with checkboxes.  I need to be able to deselect the checkbox on a single row programatically.  I am able to turn off the row selection class using 

$(row).removeClass("k-state-selected");

but I have so far been unable to uncheck the corresponding checkbox.  

Thanks in advance.

Eric Katz

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 14 Oct 2021, 10:40 AM

Hello, Eric,

You can call the click method of the checkbox to check/uncheck it and thus select/deselect the row as well. Here is a small example for reference.

Let me know how that works for you.

Regards,
Martin
Progress Telerik

Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.
Tags
Checkbox Grid
Asked by
Eric
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or