Using TreeVew combo box as a navigate menu.

2 posts, 0 answers
  1. Chie
    Chie avatar
    1 posts
    Member since:
    Nov 2010

    Posted 09 Nov 2010 Link to this post

    I'd like to use TreeVew combo box as a navigate menu.
    http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultcs.aspx

    Example)
    - ClassA
       GroupA-1
       GroupA-2
    - ClassB
       GroupB-1
    + ClassC
    + ClassD

    The followings can be realized?

    1) When 'ClassA' is clicked, the page http://shibuya.ac.jp/mycampus.aspx?g=classA is displayed with 'Class A' is selected in combo box.
        Then next, 'GroupA-2' is clicked, the page http://shibuya.ac.jp/mycampus.aspx?g=groupA-2 is displayed with 'Group A-2' is selected in combo box.
        Selected item is NOT POST back to the same URL. New page is requested (GET).

    2) Tree state (+ or -) will be kept when the page is changed from  http://shibuya.ac.jp/mycampus.aspx?g=classA to  http://shibuya.ac.jp/mycampus.aspx?g=groupA-2.

     
  2. Yana
    Admin
    Yana avatar
    4795 posts

    Posted 12 Nov 2010 Link to this post

    Hello Chie,

    As the page navigates, you should manually find the clicked node and select it. This can be done with FindNodeByUrl method like this:

    RadTreeNode clickedNode = RadTreeView1.FindNodeByUrl(Request.Url.PathAndQuery);

    Hope this helps.

    All the best,
    Yana
    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
Back to Top