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

Using TreeVew combo box as a navigate menu.

1 Answer 35 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Chie
Top achievements
Rank 1
Chie asked on 09 Nov 2010, 10:58 AM
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.

 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 12 Nov 2010, 12:27 PM
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
Tags
ComboBox
Asked by
Chie
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or