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
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>