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

RadPanelBar width

1 Answer 45 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Kamran
Top achievements
Rank 3
Iron
Veteran
Iron
Kamran asked on 26 Dec 2011, 12:26 PM
Hi Team,
 When I add Radgridview in  RadPanelBar and provide gridview column width in vector, percentage then gridview column width expends, and does not resize according to value given. RadPanelBar horizontal scrollbar automatically enables. If I provide fix width to radGridView column then its behaivor is ok. Please advise.

<ns:PanelBar Padding="10" IsExpandOnSingleClickEnabled="True" IsSingleExpandPath="True" Grid.Row="2" Grid.Column="0">
            <ns:PanelBarItem IsExpanded="True" Header="General" Style="{StaticResource PanelBarItemStyleWithArrow}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <ns:GridView AutoGenerateColumns="False" Name="gvAssetAccess" Margin="5" CanUserDeleteRows="False"
                             telerik:StyleManager.Theme="Metro" CanUserSelect="True" HorizontalAlignment="Center" ShowGroupPanel="False"
                             Width="Auto" Height="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Grid.Row="1" Grid.Column="0">
                        <ns:GridView.Columns>
                            <ns:GridViewDataColumn IsFilterable="False" Width=".20*" MinWidth="130">
                                <ns:GridViewDataColumn.Header>
                                    <ns:Label FlowDirection="LeftToRight" HorizontalAlignment="Center" Content ="Document Category"  Name="lblDocumentCategory" />
                                </ns:GridViewDataColumn.Header>
                            </ns:GridViewDataColumn>
                            <ns:GridViewDataColumn IsFilterable="False" Width=".20*" MinWidth="130">

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 29 Dec 2011, 09:34 AM
Hi Kamran,

Try setting the ScrollViewer.HorizontalScrollBarVisibility="Disabled" property of RadPanelBar and let me know if it helps. I'd be glad to further assist you.

Greetings,
Kiril Stanoev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
PanelBar
Asked by
Kamran
Top achievements
Rank 3
Iron
Veteran
Iron
Answers by
Kiril Stanoev
Telerik team
Share this question
or