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

Increasing Node Spacing

4 Answers 214 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Madhu
Top achievements
Rank 1
Madhu asked on 21 Oct 2010, 01:35 PM
Hi,

I would like to know how we can increase the node spacing. Any sample or pointer would be really appreciated.

Warm Regards
Madhu

4 Answers, 1 is accepted

Sort by
0
Madhu
Top achievements
Rank 1
answered on 22 Oct 2010, 03:50 PM
Hi,

I have managed to increase the node space by increasing the height of one of my controls in the HierarchicalDataTemplate.

But the problem is, as the size between the nodes increases, the nodes also get bigger inturn not affecting the space between. Just to look at, the treeview items appear to have increased space, but on mouse over/selection, we get to see that nothing has changed but for the size of the node.

I need to increase the node space without increasing the size of the node. Is that possible? If so, kindly let me know how I can go about achieving this.

Any pointer regarding this would be really helpful.

Warm Regards
Madhu
0
Madhu
Top achievements
Rank 1
answered on 23 Oct 2010, 09:20 AM
Hi,

I am in a slightly urgent need of any kind of guidance regarding this issue. Kindly help.

Thanks in advance.

Warm Regards
Madhu
0
Petar Mladenov
Telerik team
answered on 25 Oct 2010, 04:33 PM
Hello Madhu,

A possible way  to set spacing between RadTreeViewitems is to use the their Margin property . You can apply it to all items of the RadTreeView  by using ItemContainerStyle. I prepared a sample project  demonstrating such functionality. Please take a look at it and let me know if it satisfies your needs.

Hope this helped you. Do no t hesitate to ask  if you need further assistance.

Best wishes,
Petar Mladenov
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
0
Madhu
Top achievements
Rank 1
answered on 27 Oct 2010, 01:42 PM
Dear Petar,

You have given me exactly what I need. :)
Thank you so much for that!

But I realized that the issue that I am currently focused on is not with the node spacing but with the BringIntoView feature of the treeview. I will get back with a POC on the issue and request for help shortly.

Warm Regards
Madhu
Tags
TreeView
Asked by
Madhu
Top achievements
Rank 1
Answers by
Madhu
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or