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

[Solved] Grid Virtualization Performance and Virtual PageSize

2 Answers 155 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 01 Feb 2011, 12:08 AM
Hi,

I am binding a RadGridView to 8000 records or so. I use the default row/col virtualization to ensure it loads the data in "pages". I also load it asynchronously from an observable collection. The height of my grid is set and I do not use value converters (as per your performance tips).

However, clicking on the next page (vertical scrollbar) takes just over a second to load. Your demo with 50 million rows appears to be faster. I'v tried various things but can't speed it up, so I was thinking perhaps I could turn OFF virtualization if there were less than x (maybe 100 records) in the collection and on if there were more. 

The simplest way to do this would be to set the virtual page size (I assume it is set to the visible viewing area) - is there anyway to set this in XAML (or code) to be 100?

Our grids will probably show 100-200 records typically, so for most there will be a slightly longer load time but fast paging (this required due to the nature of our application).

Here is the header declaration:

  <telerikGrid:RadGridView
            Grid.Row="1"
            DataLoadMode="Asynchronous"
            EnableRowVirtualization="True"
            ShowGroupPanel="True"
            ItemsSource="{Binding WorkOrdersDestinations}"
            IsReadOnly="True"
            SelectedItem="{Binding SelectedWorkorder, Mode=TwoWay}"
            RowActivated="sdkWorkorders_RowActivated">
Thanks
Rodney

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 01 Feb 2011, 08:28 AM
Hi Rodney,

 I'm not sure what is WorkOrdersDestinations in your case? Is it our VirtualQueryableCollectionView

All the best,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
David
Top achievements
Rank 1
answered on 01 Feb 2011, 10:47 PM
Hi Vlad,

It is an ObservableCollection.
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Vlad
Telerik team
David
Top achievements
Rank 1
Share this question
or