Increasing Node Spacing

5 posts, 0 answers
  1. Madhu
    Madhu avatar
    9 posts
    Member since:
    Aug 2010

    Posted 21 Oct 2010 Link to this post

    Hi,

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

    Warm Regards
    Madhu
  2. Madhu
    Madhu avatar
    9 posts
    Member since:
    Aug 2010

    Posted 22 Oct 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Madhu
    Madhu avatar
    9 posts
    Member since:
    Aug 2010

    Posted 23 Oct 2010 Link to this post

    Hi,

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

    Thanks in advance.

    Warm Regards
    Madhu
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 25 Oct 2010 Link to this post

    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
  6. Madhu
    Madhu avatar
    9 posts
    Member since:
    Aug 2010

    Posted 27 Oct 2010 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready