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

Treeview Width problem

1 Answer 29 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
renis cerga
Top achievements
Rank 1
renis cerga asked on 17 May 2010, 01:35 PM
I am encountering a problem using treeview. I need the root of the tree to have a fixed width, matchin my width of the div I have left for the tree view. The background of it matches the length of the word. For example I need to have a tree of sports meaning:

Football
Germany Bundesliga
England Premier
...
...
..
..


Tennis
ATP
WTA

Basketball
NBA
fff
fadftgfdsa


I need the names of the major sports to have a background behind them that has the width of the treeview. So Soccer, Tennis, Basketball will be more visible in a darker background but the background to be wider than the length of the text.


I want something similar to the panelbar. But I can't use the panelbar because I need to check two or more rows simultaneously and the panel doesn't offer it, but the treeview does.

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 20 May 2010, 08:49 AM
Hello renis cerga,

Why don't you use something like that - a panelBar, having template with treeView for the child items. The only inconvenience here would be having multiple treeViews (if that is inconvenient at all), but still I think it would be a better solution.


Kind 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
renis cerga
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or