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

GridView without scrollbar in PanelBarItem

1 Answer 64 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Andrew L
Top achievements
Rank 1
Andrew L asked on 10 Jun 2010, 11:31 AM
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> 
 

1 Answer, 1 is accepted

Sort by
0
Andrew L
Top achievements
Rank 1
answered on 11 Jun 2010, 09:29 AM
Hi,
I found solution, only set ScrollViewer.HorizontalScrollBarVisibility to Disabled in RadPanelBar
Tags
PanelBar
Asked by
Andrew L
Top achievements
Rank 1
Answers by
Andrew L
Top achievements
Rank 1
Share this question
or