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

Loading : slow performance

4 Answers 136 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 23 Mar 2012, 03:39 PM
Hi,

I use radgridview and I have an problem to performance in loading.

If my screen resolution is 800X600, the loading is 5 second, but if my screen resolution is 1600x1200, the loading during 15 second.
Do you have an idea ?

I put MaxHeight and MaxWidth in my gridview.

For information, I have 150 columns and I use HeaderCellStyle (for each column) and 20 Converters.

Can you help me ?

Thanks

4 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 23 Mar 2012, 04:34 PM
Hi Gourvez JJ,

I will need some more details on how your RadGridView is set up  e.g. XAML  , datasource used etc.
Meanwhile there is a simple check you can perform   - are there any binding expression errors in the output window of VisualStudio while RadGridVIew is loading .


Regards,
Pavel Pavlov
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 23 Mar 2012, 05:06 PM
Hi,

Thanks for your answer.

This is my code :
--STYLEHEADER
  
     <Style  TargetType="gridView:GridViewHeaderCell" x:Key="MyHeaderCellStylePink">
                <Setter Property="Background" Value="Pink" />
                <Setter Property="Foreground" Value="Black" />
                <Setter Property="BorderBrush" Value="LightGray"></Setter>
            </Style>
              
--RADGRIDVIEW
  
  
<Grid MaxHeight="600" MaxWidth="2000">
            <telerik:RadBusyIndicator Name="radBusy" Background="LightBlue" IsIndeterminate="True"  MaxHeight="600" MaxWidth="2000">
            <telerik:RadGridView x:Name="radgridview1" DataLoadMode="Synchronous" AreRowDetailsFrozen="True" MaxHeight="900" MaxWidth="2500"  Filtered="eventFiltre" AutoGenerateColumns="False" ScrollMode="Deferred"   CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed" Margin="0,159,0,33" RowEditEnded="finEcritureRadGridView">
                    
  
                    <telerik:RadGridView.ScrollPositionIndicatorTemplate>
                        <DataTemplate>
                            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                <TextBlock Text="{Binding Numero_commande}"/>
                            </Grid>
                        </DataTemplate>
                    </telerik:RadGridView.ScrollPositionIndicatorTemplate>
  
                    <telerik:RadGridView.RowDetailsTemplate>
  
                    <DataTemplate>
                        <telerikNavigation:RadTabControl x:Name="RadTabControl1"  HorizontalAlignment="Left" Margin="8" VerticalAlignment="Center" BackgroundVisibility="Visible"  MaxHeight="900">
                              
  
                            <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 N1}" Width="81" HeaderCellStyle="{StaticResource MyHeaderCellStylePink}">
                            <telerik:GridViewDataColumn.Header>
                                <sdk:Label Content="N1" ToolTipService.ToolTip="N1"></sdk:Label>
                            </telerik:GridViewDataColumn.Header>
                        </telerik:GridViewDataColumn>
                        <telerik:GridViewDataColumn  DataMemberBinding="{Binding N2}" Width="25" HeaderCellStyle="{StaticResource MyHeaderCellStylePink}">
                            <telerik:GridViewDataColumn.Header>
                                <sdk:Label Content="N2" ToolTipService.ToolTip="N2"></sdk:Label>
                            </telerik:GridViewDataColumn.Header>
                        </telerik:GridViewDataColumn>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding N3}" Width="64" HeaderCellStyle="{StaticResource MyHeaderCellStylePink}" >
                            <telerik:GridViewDataColumn.Header>
                                <sdk:Label Content="N3" ToolTipService.ToolTip="N3"></sdk:Label>
                            </telerik:GridViewDataColumn.Header>
                        </telerik:GridViewDataColumn>
                        <telerik:GridViewDataColumn  DataMemberBinding="{Binding N4,StringFormat=00}"  Width="25" HeaderCellStyle="{StaticResource MyHeaderCellStylePink}" >
                            <telerik:GridViewDataColumn.Header>
                                <sdk:Label Content="N4" ToolTipService.ToolTip="N4"></sdk:Label>
                            </telerik:GridViewDataColumn.Header>
                        </telerik:GridViewDataColumn>
                     ...
0
GOURVEZ JJ
Top achievements
Rank 1
answered on 26 Mar 2012, 10:12 PM
nobody ?
0
Vlad
Telerik team
answered on 27 Mar 2012, 06:44 AM
Hello,

 It is not clear from the pasted code what is causing your problems. 

Please send us (via support ticket) small example project demonstrating your scenario and the slow loading.

Regards,
Vlad
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
Pavel Pavlov
Telerik team
GOURVEZ JJ
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or