Unplanned
Last Updated: 25 Dec 2020 16:03 by Kevin
Gary
Created on: 06 May 2020 07:52
Category: Grid
Type: Feature Request
10
Add unselect() method for Kendo Grid

The Kendo Grid has select() method, but is missing unselect() method. I believe that it will be a good and useful addition to the grid.

3 comments
Kevin
Posted on: 25 Dec 2020 16:03
I had already found that and have used it, and actually stopped using the .select() method [replacing it with .addClass()] because it is so hideously inefficient!
ADMIN
Preslav
Posted on: 25 Dec 2020 09:38

Hi,

To remove all selected rows in a Grid, you could use the clearSelection method - https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/methods/clearselection

For a single row, until this is implemented, a possible solution is to add custom logic to your apps that look like this:

function removeRowSelection(tr) {
    tr.removeClass("k-state-selected");
};
    
removeRowSelection($("#grid tbody tr").eq(0)); 

Regards,
Preslav
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/.

Kevin
Posted on: 19 Dec 2020 01:14
I agree!  Really is needed.