grid select first row when page change in Grid hightlight

1 Answer 75 Views
Grid
Masip
Top achievements
Rank 1
Iron
Masip asked on 19 Jan 2022, 07:53 AM

Hi

 

How could i see in an Grid when page change than first row is selected ? Currently row is not hightlighted ?

 

Regards

1 Answer, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 21 Jan 2022, 12:40 PM

Hi Masip,

In such cases, I would recommend persisting the selection and manipulating the selectedKeys array when the pageChange or dataStateChange event is fired. Please check the following article from our documentation about persisting the selection:

https://www.telerik.com/kendo-angular-ui/components/grid/selection/persisting/

The following example demonstrates the mentioned approach that clears the selectedKeys and, depending on the skip, selects the first row from the next page:

https://stackblitz.com/edit/angular-tjgppq?file=app/app.component.ts

I hope this helps.

Regards,
Yanmario
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
Masip
Top achievements
Rank 1
Iron
Answers by
Yanmario
Telerik team
Share this question
or