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

GridView bug resize column

6 Answers 113 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
GOURVEZ JJ
Top achievements
Rank 1
GOURVEZ JJ asked on 01 Mar 2012, 11:03 AM
Hi,

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

Sort by
0
Maya
Telerik team
answered on 02 Mar 2012, 01:45 PM
Hello Gourvez,

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. 

Greetings,
Maya
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
GOURVEZ JJ
Top achievements
Rank 1
answered on 02 Mar 2012, 02:34 PM
Thanks for your answer and sorry for the details.

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
0
GOURVEZ JJ
Top achievements
Rank 1
answered on 07 Mar 2012, 04:10 PM
nobody ?
0
Maya
Telerik team
answered on 08 Mar 2012, 03:38 PM
Hi Gourvez,

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 ?  

Kind regards,
Maya
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
GOURVEZ JJ
Top achievements
Rank 1
answered on 09 Mar 2012, 02:27 PM
Hi,

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


0
Vera
Telerik team
answered on 12 Mar 2012, 02:22 PM
Hello Gourvez,

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.

All the best,
Vera
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
GOURVEZ JJ
Top achievements
Rank 1
Answers by
Maya
Telerik team
GOURVEZ JJ
Top achievements
Rank 1
Vera
Telerik team
Share this question
or