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

Gridvew and VirtualQueryableCollectionView

1 Answer 56 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.
Sascha
Top achievements
Rank 1
Sascha asked on 08 Feb 2012, 01:16 PM
i have a Gridview with the itemssource bound to an VirtualQueryableCollectionView called Collection in the ViewModel.

When the Collection is initialized for the first time, everything works fine, Collection_ItemsLoading is called.

Then i have to load a new Collection into the grid, but then the Collection_ItemsLoading  is never called again, olny for the first time for the initial collection.

I used this version: 2011.3.1205.1040

Any Idea, how to fix this bug?

The following code works for the first time, but not the second time and any subsequent call:
Collection = new VirtualQueryableCollectionView();
			Collection.ItemsLoading += new EventHandler<VirtualQueryableCollectionViewItemsLoadingEventArgs>(Collection_ItemsLoading);
 			foreach (ColumnSortDescriptor cs in list)
			{
				Collection.SortDescriptors.Add(cs);
			}
			Collection.LoadSize = 100;
		
			Collection.VirtualItemCount = itemCount;

Regards,
Sascha

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Feb 2012, 08:03 AM
Hi,

 Please send us an example project (via support ticket) where we can reproduce this wrong behavior.

All the best,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Sascha
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or