I’m happy to announce that with the Q1 2011 SP1 release RadTileView will have yet another new and amazing feature – selection. This will allow you to mark, group or highlight your TileViewItems with a single click. The TileView selection supports three modes:
You’ll be able to manage your selected items with the SelectedItem, SelectedIndex and SelectedItems properties. The SelectedItem and SelectedIndex properties indicate the currently selected item, if you have more than one selected items they usually show the first selected item. The SelectedItems collection holds all currently selected items and you can change the selection of an item by adding/removing item to this collection.
The RadTileView will expose four new events that are related to the selection:
I’ll show how to create a simple TileView with selection. All you have to do is enable the selection and set a selection mode:
<
telerik:RadTileView
x:Name
=
"myTileView"
IsSelectionEnabled
=
"True"
SelectedIndex
=
"1"
SelectionMode
=
"Extended"
>
<
telerik:RadTileViewItem
>1</
telerik:RadTileViewItem
>
<
telerik:RadTileViewItem
>2</
telerik:RadTileViewItem
>
<
telerik:RadTileViewItem
>3</
telerik:RadTileViewItem
>
<
telerik:RadTileViewItem
>4</
telerik:RadTileViewItem
>
</
telerik:RadTileView
>
If you run the application you should see:
You can download the sample application from here.
And download a trial version of Telerik RadControls from here:
Zarko Vidolov is a .Net developer in Telerik XAML division. In his work he is mainly responsible for RadDiagram, RadTileView, RadBreadcrumb and RadPersistenceFramework development and implementation. Apart from work he enjoys reading and snowboarding.