Selecting a grid row does not clear selections on other pages

1 Answer 219 Views
Grid
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Noah asked on 21 Jul 2021, 03:38 PM

Using multiple select mode and paging with a custom key for determining selection and your built in selection directive.

If you select a row on one page of data and then go to another page and select a row WITHOUT holding CTRL, the selected item on the first page remains selected instead of clearing.  This is not what I would expect and not what it does without using the custom key/directive features.  Especially since it will clear any other selections on the page I'm looking at, but not clear them on the other pages.

Your docs say the following..

To leave only the current row selected and deselect all previously selected rows:

  • Click a row within the Grid

You can see the incorrect behavior in your demo site.

Persisting the Selection - Grid - Kendo UI for Angular (telerik.com)

1 Answer, 1 is accepted

Sort by
0
Slavena
Telerik team
answered on 26 Jul 2021, 02:51 PM

Hello Noah,

Thank you for the notice.

This behaviour is indeed unexpected and we have detected it as a bug. Here is the link to our public repository where I have opened an issue about the bug you have mentioned:

https://github.com/telerik/kendo-angular/issues/3394

You can track its progress there.

In the meantime, as a workaround I would suggest binding to the cellClick event of the Grid and manually updating the collection of selections(as mentioned in the logged issue):

https://stackblitz.com/edit/angular-hoznul-1ylfyh?file=app/app.component.ts

As a token of our gratitude for bringing this issue to our notice I am updating your Telerik points. Let me know if further assistance is required on this case.

Regards,
Slavena
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
Grid
Asked by
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Slavena
Telerik team
Share this question
or