Completed
Last Updated: 26 May 2022 14:01 by ADMIN
AztecConsulting
Created on: 19 May 2022 16:11
Category: UI for Blazor
Type: Feature Request
3
Pinning Grid Rows

As a user, I would like to ability to pin one to many row(s) in a grid so that the pinned rows are always the first rows at the top of the grid.

If a filter is applied, the pinned records that match the filter should be displayed first.  Non matching rows may be hidden.

If a column sort is changed, the pinned rows should be sorted then the unpinned rows should be sorted to ensure the pinned rows are always at the top of the grid.  

As a developer, Pinning should be a optional feature configured when the grid is setup.

This essentially would only add a data populated "pin" column the user can toggle on or off, but the real effort in this request is around the sorting and filtering to ensure when the user clicks a column the event is captured, and the sort is submitted as pin column, then the selected column, to ensure the pin takes precedent.  

 

2 comments
ADMIN
Svetoslav Dimitrov
Posted on: 26 May 2022 14:01

Hello Jeffrey,

I have prepared a KB article that explains how to pin multiple rows for the Grid component. You can see a working snippet and additional explanations from this GitHub link.

Optionally, you can expand the code to enable filtering, sorting works out-of-the-box. 

That being said, I am marking this Feature Request as completed. 

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

Marin Bratanov
Posted on: 20 May 2022 18:09
You can use the OnRead event and ensure that the row(s) you want pinned is always at the top of the collection for the current page.