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

Navigating the Tree

3 Answers 96 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 24 Sep 2009, 03:40 PM

Here is my situation.  I have wrapped a RadTreeview Control in a user control.  I want to provide a method that allows my page to advance to the next Item at a certain level in the tree.  When I reach the end of the tree I want it to circle back to the first item at that level.

Example:

 

-          Org

o   Folder 1

§  Doc 1

§  Doc 2

§  Doc 3

o   Folder 2

§  Doc 1

§  Doc 2

§  Doc 3

§  Doc 4

 

I want to be able to provide a method navigate forward and backward at the ‘Doc’ Level.  So when I reach Doc 3 I want the selected item to jump to Doc 1 of Folder 2 and then when I reach Doc 4 I want to navigate back to Doc 1 of Folder 1.  Is there a way to do this without too much alteration of the collections that I am using to bind to the tree? 

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 25 Sep 2009, 06:50 AM
Hi Dave,

This is an interesting scenario that we don't support right now. As a workaround you can automaticaly select the first child of the "Folder1" and "Folder2" nodes when they get selected.



Greetings,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Kabs Hussain
Top achievements
Rank 1
answered on 06 Nov 2009, 06:13 AM
Hi,
    I have 2 treeviews.One is Single select and another is Multiselect.
I want to mark check few nodes of Multiselect Treeview depending on the selection on the single select Treeview.
However I cann't any way to Navigate to child node.I can mark only the Root nodes.


A little help is appreciated.
0
Kiril Stanoev
Telerik team
answered on 12 Nov 2009, 11:13 AM
Hi Kabs,

My suggestions is to consider using ContainerBindings in this particular scenario. I have attached a sample project demonstrating the functionality you described. Additionally, more information on hierarchical data templates and container bindings can be found in this post:

Using HierarchicalDataTemplate and ContainerBindingCollection in RadTreeView

Regards,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Dave
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Kabs Hussain
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or