RadTreeView SelectedItem

5 posts, 0 answers
  1. kannan
    kannan avatar
    42 posts
    Member since:
    Sep 2010

    Posted 26 Oct 2010 Link to this post

    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.
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 29 Oct 2010 Link to this post

    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
  3. DevCraft banner
  4. kannan
    kannan avatar
    42 posts
    Member since:
    Sep 2010

    Posted 29 Oct 2010 Link to this post

    Hi Petar Mladenov ,
                                     Thanks for your reply. already i have solved the problem by using IsSelected  Property .
  5. Jeff Harlan
    Jeff Harlan avatar
    2 posts
    Member since:
    Dec 2009

    Posted 16 Jul 2015 in reply to kannan Link to this post

    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.

  6. Jeff Harlan
    Jeff Harlan avatar
    2 posts
    Member since:
    Dec 2009

    Posted 16 Jul 2015 in reply to Jeff Harlan Link to this post

    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.
    }

Back to Top
DevCraft banner