GridView without scrollbar in PanelBarItem

2 posts, 0 answers
  1. Andrew L
    Andrew L avatar
    7 posts
    Member since:
    Apr 2010

    Posted 10 Jun 2010 Link to this post

    Hi,
    When I add GridView to PanelBarItem and set columns width more than window width, then panelBar is out of window and scroll bar in GridView don't show.
     How can I fix this ?

    <Window x:Class="gridViewScroll.Window1" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        Title="Window1" Height="321" Width="551" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        <Grid> 
            <telerik:RadPanelBar Name="radPanelBar1" > 
                <telerik:RadPanelBarItem Header="HeaderBar1" IsExpanded="True"
                        <telerik:RadGridView Margin="0,0,0,1" Name="radGridView1" ShowInsertRow="True" ShowGroupPanel="False" CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed"
                        <telerik:RadGridView.Columns> 
                             <telerik:GridViewColumn UniqueName="{x:Null}" Header="Header1" Width="180"/> 
                            <telerik:GridViewColumn UniqueName="{x:Null}" Header="Header2" Width="180"/> 
                            <telerik:GridViewColumn UniqueName="{x:Null}" Header="Header3" Width="180"/> 
                            <telerik:GridViewColumn UniqueName="{x:Null}" Header="Header4" Width="180"/> 
                        </telerik:RadGridView.Columns> 
                    </telerik:RadGridView> 
                </telerik:RadPanelBarItem> 
                <telerik:RadPanelBarItem Header="HeaderBar2"></telerik:RadPanelBarItem> 
     
            </telerik:RadPanelBar> 
        </Grid> 
    </Window> 
     
  2. Andrew L
    Andrew L avatar
    7 posts
    Member since:
    Apr 2010

    Posted 11 Jun 2010 Link to this post

    Hi,
    I found solution, only set ScrollViewer.HorizontalScrollBarVisibility to Disabled in RadPanelBar
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top