Gridvew and VirtualQueryableCollectionView

2 posts, 0 answers
  1. Sascha
    Sascha avatar
    15 posts
    Member since:
    Aug 2010

    Posted 08 Feb 2012 Link to this post

    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
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Feb 2012 Link to this post

    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 >>
Back to Top