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

Custom ItemsLoading event with data virtualization in Tile View

1 Answer 17 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Taras
Top achievements
Rank 1
Taras asked on 24 Dec 2013, 10:13 AM
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.

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 26 Dec 2013, 01:31 PM
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 >>
Tags
TileView
Asked by
Taras
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or