RadGridView, Grouping and CanContentScroll

0 Answers 15 Views
GridView
Johannes
Top achievements
Rank 1
Johannes asked on 13 May 2024, 05:59 AM

Hi.

Is it possible to have a RadGridView with Grouping, Virtualization and still have Content based scrolling (CanContentScrol=true)?

We have a rather big List of Items with unequal height. The List is dynamically managed based on the state of an external peripheral. List Items are added or removed when the state of the peripheral changes. This leads to unwanted movement of the Items in the List.

We are trying to encounter Item movement when the List changes. We implemented a solution similar to this one: Keep Selected Item in Viewport when Collection Changes - Telerik UI for WPF 

But when enabling Grouping or Sorting, the RadGridView seems to change to pixel based scrolling instead of Item based scrolling. Then it seems the above solution is not working anymore, because the Offset then needs to be given in Pixels instead of Items.

Is it possible to have Item based scrolling despite Grouping or Sorting?

Else is it possible to get the height of the inserted/removed Item to calculate the offset needed, even if Virtualization is enabled?

Or is possibly some other approach better suited?

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Johannes
Top achievements
Rank 1
Share this question
or