GridView without Height or MaxHeight Defined Binding Very Slow

1 posts, 0 answers
  1. mvbaffa
    mvbaffa avatar
    102 posts
    Member since:
    Dec 2006

    Posted 28 Aug 2013 Link to this post


    I have a very strange problem. The Grid below is binding very slow if I do not include Height or MaxHeight. If I do nor include one of these attributes the data appears something like 20 or 30 seconds after the ItemsSource is set. And I have only one thousand registers. If I define the Height or MaxHeight it takes less than one second.

    The problem is that I do not want to pre define a Height because I want the Grid to Strech, Vertically and Horizontally, all over the page. But , of course, I want a scroll bar to appear automatically if the number of registers exceed the screen space.

    How can I make it work ?

    Thanks in advance
    <telerik:RadGridView x:Name="RadGridLancamentos" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
            ItemsSource="{Binding Source={StaticResource ModelLocator}, Path=ListOfObjects}"
            <telerik:GridViewDataColumn Header="Lançamento"
                        DataMemberBinding="{Binding Path=field1}"
            <telerik:GridViewDataColumn Header="Título"
                        DataMemberBinding="{Binding Path=field2}"
                        Width="*" />
            <telerik:GridViewDataColumn Header="Favorecido"
                        DataMemberBinding="{Binding Path=field3}"
                        Width="*" />

Back to Top