This is a migrated thread and some comments may be shown as answers.

last row of gridview sometimes is like chopped

21 Answers 975 Views
GridView
This is a migrated thread and some comments may be shown as answers.
saosin
Top achievements
Rank 1
saosin asked on 24 Jul 2011, 05:38 PM
Hi!

I recently upgraded to the Q2 version and I noticed a problem with the gridview, sometimes the last row is not completely visible including the row details. In the previous version it didn't happen.
Here's the code of the gridview
<telerik:RadGridView ItemsSource="{Binding PagedSource,ElementName=flightPager}" SelectionMode="Single" IsReadOnly="True"
                                         ScrollMode="RealTime" ScrollViewer.CanContentScroll="True" AutoGenerateColumns="False" 
                                         RowDetailsVisibilityMode="VisibleWhenSelected"
                                         HorizontalAlignment="Left" ScrollViewer.HorizontalScrollBarVisibility="Auto" x:Name="GridItinerary"
                                         ScrollViewer.VerticalScrollBarVisibility="Auto"  MaxHeight="600">

Here are two images that show the problem:
row details chopped

last row chopped

Thanks in advance.

21 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Jul 2011, 08:49 AM
Hi Saosin,

I have tried to reproduce the issue you reported, but unfortunately without any success. May you take a look at the sample project to verify whether I am missing something ? Are there any additional steps that I need to follow in order to get the same behavior ? Do you define the RadGridView in another control ?
 

All the best,
Maya
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Adam Marshall
Top achievements
Rank 1
answered on 01 Aug 2011, 02:20 AM
Hi saosin,

I have also found this issue sometimes, but with previous versions too.
Resizing the window and scrolling down would eventually show the hidden row.

I found that I had to set the UseLayoutRounding property on the RadGridView to False.

Hope that helps.

Adam
0
saosin
Top achievements
Rank 1
answered on 01 Aug 2011, 03:26 PM
Hi!
Thanks for the replies Maya and Adam.

I also tried to create a sample project to reproduce the problem but I couldn't, like I said just sometimes the last row was chopped so it's strange. Recently, I had to add a column with an image so it automatically make the row height larger and I haven't experienced the problem again. Btw, the gridview is not defined in another control.

Thanks
0
Maya
Telerik team
answered on 02 Aug 2011, 09:52 AM
Hello Jesus and Adam,

I have tested the case with setting UseLayoutRounding property to false, but again I was not able to get the behavior with cut rows. Is there anything more specific that I need to do ? 
Generally, we did have similar issues, but they are already fixed. 
Jesus,  I am glad that the issue got resolved. Still, if you continue to experience the same behavior, please let me know. 

 

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Lukasz
Top achievements
Rank 1
answered on 27 Oct 2011, 07:52 AM
I had the same problem, but after much testing of different options that I noticed when I set the property rowHeight in my case, at 30, everything is ok.

I suspect that this is the problem of calculating the dimensions of individual controls, in my case RadGridView was in the middle other containers such as Grid, Border and UserControl inside ContentControl each have a width and height property set to Auto

I'm using Prism v4 and MVVM


I hope this helps.
0
recotech
Top achievements
Rank 1
answered on 26 Apr 2012, 09:03 AM
I just had the last two to three lines invisible. Also, selecting them via arrow keys caused the processor to go into overdrive and nothing else. What causes it in my case is this:

The FontSize of my RadGridView is bound to a property of my view model and can be changed dynamically. Changing it affects the RowHeight.
I do set the RowHeight in Xaml anyway even though that only acts as a minimum because not doing that caused major performance issues with the scroll bar and also tended to hide last rows. I suppose having at least an estimate of the row height helps the scroll logic.

Changing the FontSize can now hide anything between 0 and 2 last rows. Seemingly random, but I suppose it has to do with the numerics of integer numbers.
0
Calvin
Top achievements
Rank 2
answered on 05 Jun 2012, 10:48 PM
I also observe this behavior: the last record in my GridView usually is truncated and doesn't display fully.

The UI structure is simple:

<Window>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <telerik:RadMenu Grid.Row="0">...</telerik:RadMenu>
        <Grid Grid.Row="1">
            <Image ... />
            <telerik:RadDataFilter ... />
        </Grid>
        <telerik:RadGridView Grid.Row="2">...</telerik:RadGridView>
    </Grid>
</Window>

0
Vlad
Telerik team
answered on 06 Jun 2012, 05:23 AM
Hi,

 Can you post more info about your grid version? 

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Calvin
Top achievements
Rank 2
answered on 06 Jun 2012, 03:09 PM
Sure Vlad, I'm running 2012.1.326.40.
0
Vera
Telerik team
answered on 06 Jun 2012, 03:35 PM
Hello Calvin,

 
This issue has been resolved and the fix for it will be available with our Q2 2012 expected next week. 

All the best,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Gre
Top achievements
Rank 1
answered on 15 Aug 2012, 11:21 AM
Hello Vera, 

Any updates on this issue? We are also currently experiencing this with RadTreeListView, will the fix be applicable to both controls?

Thanks!
0
Vera
Telerik team
answered on 15 Aug 2012, 03:31 PM
Hello Grew,

 
May I ask you to clarify the version of the Telerik controls you are using? Have you tried our Q2 2012 SP?

Kind regards,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Gre
Top achievements
Rank 1
answered on 16 Aug 2012, 07:23 AM
Hi Vera,

We tried to update to Q2 2012 SP just today and found that the same issue for RadTreeListView has also been resolved.

Thanks!

Best regards,
Grew
0
Robert Mujica
Top achievements
Rank 1
answered on 31 Oct 2012, 09:28 AM
Does the fix for "Q2 2012" will include a fix for Telerik.Web.UI RadGrid Control, i have similar issue buit only for IE6 and IE7. I have height set to auto.

Regards
Robert
0
Vlad
Telerik team
answered on 31 Oct 2012, 11:35 AM
Hello,

 This thread is for WPF. Telerik.Web.UI RadGrid Control is part of RadControls for ASP.NET AJAX. 

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Alex
Top achievements
Rank 1
answered on 29 Jan 2015, 01:07 AM
I'm seeing this problem in "Q3 2014". Has there been a regression of this bug ? I've also tried the UseLayoutRounding="False" workaround and it doesn't fix the problem.
0
Vera
Telerik team
answered on 29 Jan 2015, 09:16 AM
Hello Alex,


We are not aware of such issue with the latest official version. Please open a support ticket and send a simple runnable project demonstrating the problem you experience so we can reproduce it on our side.

Thank you in advance.


Regards,
Vera
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Magnus
Top achievements
Rank 1
answered on 19 Jun 2017, 12:45 PM
I can reproduce this error in 2016 R3. Unfortunately, when I try to create a small demo-application it works fine so I must be missing some crucial condition. But here's some things I've noticed when investigating this issue:

1. It only appears when I use the UI-scaling feature in Windows. If the scale is set to 100%, no row is clipped, but if I use 125% the last row is clipped in half.
2. Using WPF Inspector I noticed that the ActualHeight and ActualWidth of the RadGridView is not integer numbers when using scaling, but I don't know if its related.
3. Our RadGridView resides in a docked RadPane. But when setting the pane to floating, the grid is resized and the last row is no longer clipped.
4. Setting UseLayoutRounding = false resolves the issue.
0
Stefan
Telerik team
answered on 22 Jun 2017, 11:21 AM
Hello Magnus,

Thank you for the information regarding the investigation you have made on your end.

Unfortunately, based on it I cannot relate the behavior you are experiencing to any known issue of the control. Just for the test, can you please try setting the GroupRenderMode of the control to Flat? Is the visual issue still reproduced? Basically, the Flat mode is the newer virtualization mechanism of RadGridView and a lot of issues known with the old Nested(and default) one where fixed.

Regards,
Stefan X1
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Magnus
Top achievements
Rank 1
answered on 27 Jun 2017, 05:26 AM
Yes! Using GroupRenderMode.Flat also solves the issue. I guess I should be using that mode instead!
0
Stefan
Telerik team
answered on 29 Jun 2017, 01:25 PM
Hello Magnus,

I am happy that the FlatMode solves the problem on your end. I also recommend you using it, as it has a lot of improvements compared to the Nested one, as stated in my previous reply.

All the best,
Stefan X1
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
saosin
Top achievements
Rank 1
Answers by
Maya
Telerik team
Adam Marshall
Top achievements
Rank 1
saosin
Top achievements
Rank 1
Lukasz
Top achievements
Rank 1
recotech
Top achievements
Rank 1
Calvin
Top achievements
Rank 2
Vlad
Telerik team
Vera
Telerik team
Gre
Top achievements
Rank 1
Robert Mujica
Top achievements
Rank 1
Alex
Top achievements
Rank 1
Magnus
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or