last row of gridview sometimes is like chopped

22 posts, 0 answers
  1. saosin
    saosin avatar
    2 posts
    Member since:
    Feb 2011

    Posted 24 Jul 2011 Link to this post

    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.
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 28 Jul 2011 Link to this post

    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!

  3. Adam Marshall
    Adam Marshall avatar
    46 posts
    Member since:
    Nov 2009

    Posted 31 Jul 2011 Link to this post

    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
  4. saosin
    saosin avatar
    2 posts
    Member since:
    Feb 2011

    Posted 01 Aug 2011 Link to this post

    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
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 02 Aug 2011 Link to this post

    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 >>

  6. Lukasz
    Lukasz avatar
    1 posts
    Member since:
    Jun 2011

    Posted 27 Oct 2011 Link to this post

    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.
  7. recotech
    recotech avatar
    12 posts
    Member since:
    Oct 2010

    Posted 26 Apr 2012 Link to this post

    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.
  8. Calvin
    Calvin avatar
    42 posts
    Member since:
    Jul 2011

    Posted 05 Jun 2012 Link to this post

    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>

  9. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 06 Jun 2012 Link to this post

    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 >>

  10. Calvin
    Calvin avatar
    42 posts
    Member since:
    Jul 2011

    Posted 06 Jun 2012 Link to this post

    Sure Vlad, I'm running 2012.1.326.40.
  11. Vera
    Admin
    Vera avatar
    263 posts

    Posted 06 Jun 2012 Link to this post

    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 >>

  12. Gre
    Gre avatar
    2 posts
    Member since:
    Apr 2012

    Posted 15 Aug 2012 Link to this post

    Hello Vera, 

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

    Thanks!
  13. Vera
    Admin
    Vera avatar
    263 posts

    Posted 15 Aug 2012 Link to this post

    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.

  14. Gre
    Gre avatar
    2 posts
    Member since:
    Apr 2012

    Posted 16 Aug 2012 Link to this post

    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
  15. Robert Mujica
    Robert Mujica avatar
    1 posts
    Member since:
    Mar 2010

    Posted 31 Oct 2012 Link to this post

    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
  16. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 31 Oct 2012 Link to this post

    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.

  17. Alex
    Alex avatar
    1 posts
    Member since:
    Jan 2015

    Posted 28 Jan 2015 Link to this post

    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.
  18. Vera
    Admin
    Vera avatar
    263 posts

    Posted 29 Jan 2015 Link to this post

    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.

     
  19. Magnus
    Magnus avatar
    23 posts
    Member since:
    Dec 2011

    Posted 19 Jun Link to this post

    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.
  20. Stefan
    Admin
    Stefan avatar
    774 posts

    Posted 22 Jun Link to this post

    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.
  21. Magnus
    Magnus avatar
    23 posts
    Member since:
    Dec 2011

    Posted 27 Jun Link to this post

    Yes! Using GroupRenderMode.Flat also solves the issue. I guess I should be using that mode instead!
  22. Stefan
    Admin
    Stefan avatar
    774 posts

    Posted 29 Jun Link to this post

    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.
Back to Top