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

GridView without Height or MaxHeight Defined Binding Very Slow

0 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
mvbaffa
Top achievements
Rank 1
mvbaffa asked on 28 Aug 2013, 02:41 PM
Hi,

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}"
        IsReadOnly="True"
        AutoGenerateColumns="False"
        MinHeight="386"
        Height="700"
        CanUserFreezeColumns="False"
        RowIndicatorVisibility="Collapsed"
        CanUserResizeColumns="False">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="Lançamento"
                    DataMemberBinding="{Binding Path=field1}"
                    IsGroupable="False"/>
        <telerik:GridViewDataColumn Header="Título"
                    DataMemberBinding="{Binding Path=field2}"
                    IsGroupable="False"
                    Width="*" />
        <telerik:GridViewDataColumn Header="Favorecido"
                    DataMemberBinding="{Binding Path=field3}"
                    IsGroupable="False"
                    Width="*" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>


No answers yet. Maybe you can help?

Tags
GridView
Asked by
mvbaffa
Top achievements
Rank 1
Share this question
or