Hi
I am binding 800000 records to the radgridvew control and one way of doing is as follows as normally.
So with Q3 I try to optimize the performance like below.
my xaml code is like this
this increases the rendering speed little but I am still looking something better. So if anyone can suggest a way please reply. Thanks in advance.
Nishan
I am binding 800000 records to the radgridvew control and one way of doing is as follows as normally.
List<Company> companyList = new List<Company>();for (int i = 0; i < 800000; i++){ companyList.Add( new Company() { Id = i, Name = "test name " + i, Address = "test address " + i, Revenue = 88888888, BusinessAres = "test area " + i, });}radGridView1.ItemsSource = companyList;So with Q3 I try to optimize the performance like below.
List<Company> companyList = new List<Company>();for (int i = 0; i < 800000; i++){ companyList.Add( new Company() { Id = i, Name = "test name " + i, Address = "test address " + i, Revenue = 88888888, BusinessAres = "test area " + i, });}var viewList = new VirtualQueryableCollectionView(companyList) { LoadSize = 10 }; radGridView1.DataContext= viewList;my xaml code is like this
<Window x:Class="WpfApplication1.MainWindow" Title="MainWindow" Height="350" Width="525" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Loaded="Window_Loaded"> <Grid> <telerik:RadGridView HorizontalAlignment="Stretch" Margin="0,43,0,0" Name="radGridView1" ItemsSource="{Binding}" VerticalAlignment="Stretch" /> <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="23,12,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" /> </Grid></Window>this increases the rendering speed little but I am still looking something better. So if anyone can suggest a way please reply. Thanks in advance.
Nishan