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

RadTreeView SelectedItem

4 Answers 108 Views
OutlookBar
This is a migrated thread and some comments may be shown as answers.
kannan
Top achievements
Rank 1
kannan asked on 26 Oct 2010, 02:05 PM
Hi,
   i am using RadOutLookBar. when i move from one page to another page without click the RadTreeView ,  the Page corresponding RadTreeViewtem Should be selected.

For Ex:
     the RadOutLookBar is created in home page. but if i move from I St page to II nd page by button click event . the II nd page RadTreeViewtem Should be selected.

4 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 29 Oct 2010, 10:58 AM
Hello kannan,

I am not sure what exactly you are trying to achieve. Could you please elaborate on your scenario in order to provide you with a more precise advice?

However , the IsSelected  property of the RadTreeViewItem,  or the SelectedIndex  of the RadOutlookbar  could be set in the OnNavigatedTo method of a particular Page.

I would be glad if I can assist you further.

Greetings,
Petar Mladenov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
kannan
Top achievements
Rank 1
answered on 29 Oct 2010, 02:27 PM
Hi Petar Mladenov ,
                                 Thanks for your reply. already i have solved the problem by using IsSelected  Property .
0
Jeff Harlan
Top achievements
Rank 1
answered on 16 Jul 2015, 06:12 PM

Any chance you can share sample code on how did you do it? 
I have the following MenuItems:
[Order]          --> this will display a form
[UserProfile]
[Reports]       --> displays a list of available reports
[Queues]       --> displays another screen on the right side. It has 3 subItems, each of them has a GridView, this gridview displays some orders, when the user clicks on one of this orders, the order is loaded. 
What I need is to automatically GO BACK to the first OutlookBar item ([ORDER]) and display the Order Form.

FYI, I am using MVVM pattern.

Any help will be greatly appreciated. 
Thanks in advance.

0
Jeff Harlan
Top achievements
Rank 1
answered on 16 Jul 2015, 07:10 PM

Never mind, I finally found how to use the IsSelected and SelectedIndex properties. 
I needed to do a Two way binding.

<t:RadOutlookBar IsMinimizable="False"
                         Name="OutLookBar"
                         Width="150"
                         Grid.Column="0"
                         Grid.Row="0"
                         SelectedIndex="{Binding Path=SelectedItemIndex, Mode=TwoWay}">
<t:RadOutlookBarItem x:Name="OrderRadOutlookBarItem"
                                 Header="Order"
                                 FontWeight="Bold"
                                 Tag="Order"
                                 IsSelected="{Binding Path=IsOrderMenuSelected, Mode=TwoWay}">

----------------------------- MainModelView.cs ----------------------------------
public void MyProcOrEventHandler()
{
IsOrderMenuSelected = true;
SelectedItemIndex = 0; //the index for the Item you want to activate. In my case I want the very first item.
}

Tags
OutlookBar
Asked by
kannan
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
kannan
Top achievements
Rank 1
Jeff Harlan
Top achievements
Rank 1
Share this question
or