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

Buggy behavior with RadGridView GroupPanel and ScrollViewer.HorizontalScrollBarVisibility.

1 Answer 39 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ravin
Top achievements
Rank 1
Ravin asked on 05 Jun 2015, 07:51 PM

Hi,

I am using a <code>RadGridView</code> with <code>ShowGroupPanel="True"</code> and <code>ScrollViewer.HorizontalScrollBarVisibility="Visible"</code>:

               

<telerik:RadGridView x:Name="gridViewLogData" Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                ItemsSource="{Binding collLogData, Converter={StaticResource collLogDataToSortedCollLogDataConverter}}"
                AutoGenerateColumns="False" IsReadOnly="True" ShowGroupPanel="True"
                SelectionMode="Single" SelectedItem="{Binding logData_SelectedItem, Mode=TwoWay}"
                ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible">
    <!-- snipped -->
</telerik:RadGridView>

With this markup, if I group data together (similar to in this question: http://www.telerik.com/forums/horizontal-scrollbar-when-grouped, however, I am using the 2014.1.224.1050 release Telerik binaries, and that question is from 2009).

This is the end result I get: [see TelerikRadGridView-GroupPanel-HorizontalScrollViewer-2015-06-05_15-34-57.png -- attached to this post]

The horizontal scrollbar remains visible but has no available area to scroll on while the RadGridView is collapsed (even though the headers in the RadGridView more than take up the area of the screen).

If I take this a step further and expand a single group in the collection, then the ScrollViewer shows an available scroll area; however, if I scroll over to add another column into the GroupPanel, I find that every so often the control gets buggy and the expanded group ends up collapsing before I can scroll over to the proper area to add it.

I cannot reproduce it 100% of the time, but it does happen quite a bit.

 

Thanks,
Ravin

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 10 Jun 2015, 08:55 AM
Hello Ravin,

The scrollbar remains visible as you have specifically configured it to be constantly visible: ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible".

Would you please remove those settings? The scrollbar should be automatically displayed when there are more records than can be currently displayed into view. Is it not the case with your implementation? You can also refer to the WPF Demos on RadGridView.

Regards,
Dimitrina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Ravin
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or