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

Treeview inner node arrangement..

1 Answer 52 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
FISCAL
Top achievements
Rank 1
FISCAL asked on 22 Jul 2010, 08:20 AM
Hi,

Is it possible to arrange the inner nodes in two columns rather than default one column? For example,

Rather than following default look, 

Node1
        InnerNode1
InnerNode2
InnerNode3
Node2 
       InnerNode1
       InnerNode2
       InnerNode3
       InnerNode4

Is it possible to have it re-arranged so that child nodes will be repeated horizontally into 2 coulmns as we can do in CheckboxList?

Node1
       InnerNode1  Inner Node2 
       InnerNode3
Node2
      InnerNode1  InnerNode2
      InnerNode3  InnerNode4


Any help is highly appreciated.

Many thanks.

M G

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 23 Jul 2010, 04:12 PM
Hello M G,

Well, nothing is impossible, but such a requirement would bring a lot of non-trivial changes.
Why don't you try achieving this by using a template of the root node and place 2 separate treeViews inside of it. This will be a a bit better than changing the original look of the treeView. Still you have to know there are some challenges - you will have to implement for example algorithm which transfers node on overflow of the column, you will have to implement event handlers that work with multiple instances of the treeView (one handler dealing with the event of many treeViews) etc.

Summary:
There isn't an easy way to achieve this requirement but it's doable.

Hope this is helpful for you!


Regards,
Nikolay Tsenkov
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
TreeView
Asked by
FISCAL
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or