Edit this page

Getting Started

RadCollectionNavigator’s main purpose is to expose some of ICollectionView/IEditableCollectionView methods through its UI and public commands.

RadCollectionNavigator’s Source property accepts IEnumerable values and manages them as it follows: On the one hand, if the underlying value implements ICollectionView, the current implementation of its methods is used. And on the other hand, a new instance of Telerik’s QueryableCollectionView (which implements both interfaces) is initialized, using the Source value as its SourceCollection.

In either case the used ICollectionView is exposed through the control’s CollectionView property. By binding an ItemsControl’s ItemsSource to this property one can benefit from seamless, MVVM-compatible and data-driven collection processing for any ItemsControls and any collection (even for custom ICollectionView implementations).

In order to use it you need to add references to the assemblies Telerik.Windows.Data and Telerik.Windows.Controls.Data.

Here is a simple example of RadCollectionNavigator's integration with a ListBox:

[XAML] Example 1: RadCollectionNavigator bound to a ListBox

<Grid x:Name="LayoutRoot"
    <my:MyViewModel />
    <RowDefinition Height="*"/>
    <RowDefinition Height="Auto" />
    SelectedItem="{Binding ElementName=collectionNavigator, Path=CurrentItem, Mode=TwoWay}"
    ItemsSource="{Binding ElementName=collectionNavigator, Path=CollectionView}" />
    Source="{Binding Clubs}"

Figure 1 shows the final result:

Figure 1: RadCollectionNavigator bound to a ListBox

RadCollectionNavigator bound to a ListBox

See Also