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

Gridview Vertical Scrollbar - last item STILL not fully visible

2 Answers 405 Views
GridView
This is a migrated thread and some comments may be shown as answers.
SCHUHFRIED
Top achievements
Rank 1
SCHUHFRIED asked on 04 Dec 2014, 01:24 PM
HI, hello,
I am facing problem which should be fixed already (based post http://www.telerik.com/forums/gridview-vertical-scrollbar---last-item-not-fully-visible#V4PclbPjJkW3wbe7TUNsRg).

this is my code:
<Grid ScrollViewer.HorizontalScrollBarVisibility="Disabled"
          ScrollViewer.VerticalScrollBarVisibility="Disabled"
          MinWidth="300"
          MaxWidth="600"
          Height="500">
        <telerik:RadPanelBar ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                        ScrollViewer.VerticalScrollBarVisibility="Disabled">
            <telerik:RadPanelBarItem Header="Bar1">
                some content
            </telerik:RadPanelBarItem>
            <telerik:RadPanelBarItem Header="Bar2">
                <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
                    <telerik:RadGridView
                        Style="{StaticResource DefaultRadGridView}"
                        ItemsSource="{Binding ItemList}"
                        SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                         
                        ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                        ScrollViewer.VerticalScrollBarVisibility="Disabled"
                                    IsSynchronizedWithCurrentItem="False"
 
                                    EnableRowVirtualization="True"
                        EnableColumnVirtualization="False">
 
                        <telerik:RadGridView.Columns>
                            <!-- Name -->
                            <telerik:GridViewDataColumn
                                DataMemberBinding="{Binding Name}"
                                Header="Name"
                                Width="Auto" />
 
                            <!-- Description -->
                            <telerik:GridViewDataColumn
                                DataMemberBinding="{Binding Description}"
                                Header="Description"
                                Width="*"
                                TextWrapping="Wrap" />
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </ScrollViewer>
            </telerik:RadPanelBarItem>
            <telerik:RadPanelBarItem Header="Bar3">
                some content
            </telerik:RadPanelBarItem>
        </telerik:RadPanelBar>
    </Grid>


I have gridview in radpanelbar and I use scrollviewer. When the gridview is resized and wrapping of the text gets working, last item is partially (or whole) hidden. When TextWrapping is set to NoWrap, last item is shown correctly.
I tried also approach where I used just gridview scrollbar. This worked little bit better (it means that last item was not hiding so dramatically), but problem was still present.

I prepared nice demo where you can reproduce problem. I am using Q3 2014.

Steps to reproduce:
- run demo
- expand Bar2
- scroll to last item
- reduce width of main window to start text wrapping
- watch last item

When can be this fixed? Or which workaround should I use to fix this bug?
I tried to hack it by hooking on LayoutUpdated event and computing correct height of gridview, which worked fine. But unfortunatelly, it caused infinite calling of LayoutUpdated event in some cases (which lead to troubles especially at customers PCs).

Thanks for help.

P.S. I can send you working demo. I was not allowed to add zip file as attached files of this post.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 05 Dec 2014, 03:22 PM
Hello,

I am glad to let you know the issue is now resolved with the new GroupRenderMode="Flat"As explained in our documentation, the Flat mode was introduced with Q2 2013 as a completely new logic for group rendering. The result was faster scrolling and very good performance, but it also fixed a lot of other issues reproducible with the old Nested mode. 

Would you please try configuring RadGridView with GroupRenderMode="Flat"?

Regards,
Dimitrina
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
SCHUHFRIED
Top achievements
Rank 1
answered on 08 Dec 2014, 08:36 AM
Hi, Hello,
thank you very much. It fixed my problem.

BR
Jozef
Tags
GridView
Asked by
SCHUHFRIED
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
SCHUHFRIED
Top achievements
Rank 1
Share this question
or