Exclude rows from sorting

1 Answer 70 Views
GridView
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Deltaohm asked on 25 Mar 2022, 09:30 AM

Hi

In a radgridview I have some rows that I would like to stay always on top, in the order I set in the initial loading.
The other rows can be sorted in the default mode for the column click.

Please note that the number of rows "locked" is known only at runtime.

In the first figure you could see the original sorting. The gray rows are that I would to stay on top:

In the second figure you could see the result after sorting on coulmn "Inizio": the sorting is correct obviously, but I would like that the 3 gray rows stay on the top anyway:

Thank you

Luigi

1 Answer, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 28 Mar 2022, 03:02 PM

Hi,

What I can suggest is to take advantage of the pinned rows functionality. Please have in mind, however, that the pinned items will still be sorted, but only compared to each other.

If this does not work for you, you will need to implement custom sorting as explained in this article: Custom Sorting.

Tags
GridView
Asked by
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Dilyan Traykov
Telerik team
Share this question
or