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

Scroll index

1 Answer 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 30 Apr 2012, 06:58 PM
I am implementing a custom virtual collection similar to the VirtualQueryableCollectionView. The difference is mine allows for adding and deleting items.

I fill my collection with a set of null values based on the VirtualItemCount and I need to know which entities to load when the user is scrolling.

How do you trigger LoadItems in your VirtualQueryableCollectionView?

I have tried to get the row index when the scroll changes by listening to RowLoaded. But
 gridView.Items.IndexOf(e.DataElement) does not work because DataElement is null.

Do you have any solution to get the row index?

1 Answer, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 30 Apr 2012, 10:22 PM
Finally figured out how to use the decompiler in my code assist :)

By overriding: GetItemAt(int index) I was able to implement this.
Tags
GridView
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Share this question
or