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

RadTileViewItem SelectedItem...

4 Answers 161 Views
TileView
This is a migrated thread and some comments may be shown as answers.
sunkilla
Top achievements
Rank 1
sunkilla asked on 30 Nov 2010, 03:43 PM
Hello,

I am using radtileview, and i wish to know if there is no parameter as "SelectedItem" for use with radtransitioncontrol...

Thanks in Advance

4 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 01 Dec 2010, 07:00 PM
Hi sunkilla,

There is no SelectedItem property in the RadTileView because there's no concept of a selected item in that control. You can try to use the MaximizedItem property or you can add a handler for the MouseLeftButtonDown() event and check if the click was inside the RadTileViewItems header bar like that:
public MainPage()
{
    InitializeComponent();
 
    this.AddHandler(RadTileView.MouseLeftButtonDownEvent, new                                                       MouseButtonEventHandler(myTileView_MouseLeftButtonDown), true);
}
 
private void myTileView_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
    if ((e.OriginalSource as Border).ParentOfType<RadTileViewItem>() != null)
        selectedItemText.Text = (e.OriginalSource as Border).ParentOfType<RadTileViewItem>().Header.ToString();
}

If you have further questions feel free to ask.

Sincerely yours,
Zarko
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Clint
Top achievements
Rank 1
answered on 25 Oct 2011, 11:48 PM
How would I use the MaximizedItem property to get the value of the selecteditem header?  Example?
0
Petar Mladenov
Telerik team
answered on 28 Oct 2011, 05:13 PM
Hi Clint,

 These properties are different by design and are used for different purposes. You can examine this blog post describing the Selection feature in RadTileView. The e.OriginalSource in the SelectionChanged event will give you the selected RadTileViewItem and you will be able to access its header. Is this suitable for you ?

Greetings,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Clint
Top achievements
Rank 1
answered on 28 Oct 2011, 06:49 PM
Perfect.  Wasn't aware you guys added those options.  Thanks!
Tags
TileView
Asked by
sunkilla
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Clint
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or