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
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
Thanks for your reply. already i have solved the problem by using IsSelected Property .
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.
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.
}