Loading : slow performance

5 posts, 0 answers
  1. GOURVEZ JJ
    GOURVEZ JJ avatar
    55 posts
    Member since:
    Dec 2009

    Posted 23 Mar 2012 Link to this post

    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
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 23 Mar 2012 Link to this post

    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 >>
  3. GOURVEZ JJ
    GOURVEZ JJ avatar
    55 posts
    Member since:
    Dec 2009

    Posted 23 Mar 2012 Link to this post

    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>
                         ...
  4. GOURVEZ JJ
    GOURVEZ JJ avatar
    55 posts
    Member since:
    Dec 2009

    Posted 26 Mar 2012 Link to this post

    nobody ?
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 27 Mar 2012 Link to this post

    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 >>
Back to Top