RadGridView shows an empty space after grouping by column

0 Answers 216 Views
GridView
alex
Top achievements
Rank 2
Bronze
Iron
Iron
alex asked on 16 May 2023, 05:56 PM

Hello,

I have a strange behavior during grouping.

When I drag a column to the header and the grouping is performed then you redraw the RadGridView layout.

Sometimes I see the first group at the middle of the grid instead of the top (there is an empty space in half of the grid). If I scroll a little bit then the layout is fixed and the grid looks as expected.

I tried to InvalidateVisual on the Grouped event but it looks the same. How do I solve it ?

alex
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 17 May 2023, 05:25 PM | edited

Anyone did face this issue and can support please ?
Martin Ivanov
Telerik team
commented on 19 May 2023, 10:18 AM

Can you try setting the GroupRenderMode property of RadGridView to Flat?
alex
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 21 May 2023, 05:21 AM | edited

Hi Martin,

It is not working. I am using VisualStudio2013Theme (Dark Pallete).

I can see that the problem is not happening while setting style={x:Type Null}

Do you have any idea what can cause this issue?

alex
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 22 May 2023, 07:28 PM

???
Stenly
Telerik team
commented on 24 May 2023, 10:35 AM

With the currently presented information, I cannot point out why this behavior is being presented on your end. Would it be possible to share a sample project that reproduces this? 
alex
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 29 May 2023, 05:01 PM | edited

I will try to reproduce. My code is very complex and I am not allowed to post the code here. I will try to make some time to create a sample application. In the mindtime can you check please if you face any problem with VisualStudio2013Theme?

Just group a column by property, for example "name".

Let's say that without grouping you have 1,000 rows with vertical scrollbar AUTO and after grouping you have two groups, so the groups are collpased and the scrollbar should dissapear because with two groups you will have two rows of 50 items per group (both groups collased).

You can initialze a collection with half of the items with Name="aaa" and the other half Name="bbb"

alex
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 31 May 2023, 06:41 AM | edited

Hi martin, I want to apologyze.

I checked again and it seems that the GroupRenderMode=Flat is the problem.

Everything works as expected with GroupRenderMode=Nested.

The problems is that the performance is extremelly bad with only 500 items with refresh rate of 1 second (of course the UI thread is doing other work in parallel).

The RadGridView has 30 columns, only 7 are visible in the window, virtualization is enabled for rows and columns.

Can you fix the issue with GroupRenderMode.Flat?

Martin Ivanov
Telerik team
commented on 01 Jun 2023, 11:01 AM

Thank you for the additional information. I couldn't find anything similar that is reported or can be reproduced, so I will guess that there is a specific combination of setting that should be applied. Also note that, there were some similar issues in the past which were resolved. This said, I recommend you to test with the latest version of Telerik UI for WPF and see if the issue still occurs.

If that doesn't help, I will stick to the Stenly's query about providing a sample project. This will allow us to test it and see what exactly happens. In order to avoid any privacy issues about your code, you can extract only the RadGridView setup along with some dummy models and data in an isolated project. 

alex
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 02 Jun 2023, 04:01 PM

We are using the latest version of Telerik. I will try to make an isolated project. It will be complicated because we have a lot of styles.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
alex
Top achievements
Rank 2
Bronze
Iron
Iron
Share this question
or