Custom ItemsLoading event with data virtualization in Tile View

2 posts, 0 answers
  1. Taras
    Taras avatar
    1 posts
    Member since:
    Dec 2013

    Posted 24 Dec 2013 Link to this post

    Is it possible to use VirtualQueryableCollectionView with ItemsLoading event to get the data for my current scroll position? Now it looks like it is sending requests to get all data from the begin to my scroll position.
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 26 Dec 2013 Link to this post

    Hi Taras,
    As far as we've tested all you have to do to make the RadTileView work with the VirtualQueryableCollectionView is turn on its virtualization (the UI virtualization is disabled by default) and set the RowHeight and ColumnWidth so that not all tiles are visible from the beginning:
    <telerik:RadTileView x:Name="tileView"
                ColumnWidth="300"
                IsVirtualizing="True"
                ItemTemplate="{StaticResource template}"
                ItemsSource="{Binding }"
                RowHeight="250" />
    This way only the visible items (and maybe some invisible - for better scrolling the tile view always generates 1 extra row) should be loaded in the view's ItemsLoading event.
    I hope I was able to help you and if you have more questions please feel fee to ask.

    Regards,
    Zarko
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top