I use radgridiew in my application.
In my radgridview I have 200 columns.
But I have an problem to resize column.
In fact, in my screen I see 15 columns, I can resize all column except 12.
But if I move horizontalscroolbar (1mm), I can resize all columns.
Can you help me ?
Thanks
6 Answers, 1 is accepted
Will it be possible to provide a bit more information about your exact scenario and settings ? How do you define your RadGridView and its columns ?
Generally, any additional relevant information or code-snippets would be helpful.
Maya
the Telerik team
This is my code :
<telerik:RadGridView x:Name="radgridview1" MinHeight="400" MaxHeight="900" MinWidth="1000" MaxWidth="1600" IsScrolling="True" Filtered="eventFiltre" AutoGenerateColumns="False" ScrollMode="Deferred" telerik:Theming.Theme="Summer" ColumnBackground="Transparent" CanUserFreezeColumns="False" CanUserResizeColumns="True" RowIndicatorVisibility="Collapsed" Margin="0,159,0,33" BorderThickness="1" RowLoaded="rowLoaded" RowEditEnded="finEcritureRadGridView">
<telerik:RadGridView.RowDetailsTemplate>
<DataTemplate>
<telerikNavigation:RadTabControl x:Name="RadTabControl1" HorizontalAlignment="Left" Margin="8" VerticalAlignment="Center" BackgroundVisibility="Visible" MaxWidth="1150">
<telerikNavigation:RadTabItem Header="tab1" DataContext="{Binding}" Margin="10,0,0,0" Height="24" IsSelected="{Binding AfficheTab1}">
<local:fenFormulaireJDE/>
</telerikNavigation:RadTabItem>
<telerikNavigation:RadTabItem Header="tab2" DataContext="{Binding}" Margin="10,0,0,0" Height="24" IsSelected="{Binding AfficheTab2}">
<local:fenFormulaireCC/>
</telerikNavigation:RadTabItem>
<telerikNavigation:RadTabItem Header="tab3" DataContext="{Binding}" Margin="10,0,0,0" Height="24" IsSelected="{Binding AfficheTab3}">
<local:fenFormulaireADV/>
</telerikNavigation:RadTabItem>
<telerikNavigation:RadTabItem Header="tab4" DataContext="{Binding}" Margin="10,0,0,0" Height="24" IsSelected="{Binding AfficheTab4}">
<local:fenFormulairePlanif/>
</telerikNavigation:RadTabItem>
<telerikNavigation:RadTabItem Header="tab5" DataContext="{Binding}" Margin="10,0,0,0" Height="24" IsSelected="{Binding AfficheTab5}">
<local:fenFormulaireBE/>
</telerikNavigation:RadTabItem>
<telerikNavigation:RadTabItem Header="tab6" DataContext="{Binding}" Margin="10,0,0,0" Height="24" IsSelected="{Binding AfficheTab6}">
<local:fenFormulaireMethodes/>
</telerikNavigation:RadTabItem>
<telerikNavigation:RadTabItem Header="tab7" DataContext="{Binding}" Margin="10,0,0,0" Height="24" IsSelected="{Binding AfficheTab7}">
<local:fenFormulaireAchat/>
</telerikNavigation:RadTabItem>
<telerikNavigation:RadTabItem Header="tab8" DataContext="{Binding}" Margin="10,0,0,0" Height="24">
<local:fenNoteView/>
</telerikNavigation:RadTabItem>
<telerikNavigation:RadTabItem Header="tab9" DataContext="{Binding}" Margin="10,0,0,0" Height="24" IsSelected="False">
<local:fenFormulaireGlobal/>
</telerikNavigation:RadTabItem>
</telerikNavigation:RadTabControl>
</DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>
<telerik:RadGridView.Columns>
<telerik:GridViewToggleRowDetailsColumn Header=" " IsFilterable="False" IsGroupable="False" IsReorderable="False"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Numero_devis}" Width="81" HeaderCellStyle="{StaticResource MyHeaderCellStylePink}">
<telerik:GridViewDataColumn.Header>
<sdk:Label Content="N°" ToolTipService.ToolTip="N°"></sdk:Label>
</telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Code_activite}" Width="25" HeaderCellStyle="{StaticResource MyHeaderCellStylePink}">
<telerik:GridViewDataColumn.Header>
<sdk:Label Content="Code activité" ToolTipService.ToolTip="Code activité"></sdk:Label>
</telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Numero_commande}" Width="64" HeaderCellStyle="{StaticResource MyHeaderCellStylePink}" >
<telerik:GridViewDataColumn.Header>
<sdk:Label Content="N° de commande" ToolTipService.ToolTip="N° de commande"></sdk:Label>
</telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Lignes,StringFormat=00}" Width="25" HeaderCellStyle="{StaticResource MyHeaderCellStylePink}" >
<telerik:GridViewDataColumn.Header>
<sdk:Label Content="Ligne" ToolTipService.ToolTip="Ligne"></sdk:Label>
</telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Quantite}" Width="25" HeaderCellStyle="{StaticResource MyHeaderCellStylePink}" >
<telerik:GridViewDataColumn.Header>
<sdk:Label Content="Quantité" ToolTipService.ToolTip="Quantité"></sdk:Label>
</telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Designation_1}" HeaderCellStyle="{StaticResource MyHeaderCellStylePink}" Width="114">
<telerik:GridViewDataColumn.Header>
<sdk:Label Content="Désignation 1" ToolTipService.ToolTip="Désignation 1"></sdk:Label>
</telerik:GridViewDataColumn.Header>
<telerik:GridViewDataColumn.ToolTipTemplate>
<DataTemplate>
<dataInput:Label Content="{Binding Designation_1}"/>
</DataTemplate>
</telerik:GridViewDataColumn.ToolTipTemplate>
</telerik:GridViewDataColumn>
..... 150 columns after
Thanks
Could you take a look at the sample attached and check whether you can get the same behavior on it ? Is there anything more specific that I need to do for reproducing the issue ?
Maya
the Telerik team
No i don't have more specific code.
But the problem is all 24th columns.
In my application I have 150 columns.
But in my screen I dysplay 30 columns (after I use horizontalscrollbar) , but for the 24th columns display, I can't resize it.
If I move the horizontal scrool bar, I can resize my columns, but the problem produce at 24th columns display.
Example (0-30 : problem on the 24th column ==> 10-40 : problem on the 34th columns ==> 20:50 : problem on the 44th columns)
Can you help me ?
thanks
We tried to reproduce the reported issue using the details you provided but without any success. May I ask you to open a support ticket and to send a simple runnable project demonstrating the problem?
Looking forward to hearing from you.
Vera
the Telerik team