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

How to Minimize gaps between Treeview nodes ?

1 Answer 107 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ankit
Top achievements
Rank 1
Ankit asked on 07 Jan 2013, 04:53 PM
Hi,

We have recently updated telerik controls. Earlier We were using 2009 version. Now we updated to 2012 3.5 version. After Updating the telerik treeview controls and applying skins, there are lot of gap between two nodes. Earlier it was not like that. It was having proper gaps between two nodes. As we have around 500 nodes, Height of page is now increased and user has to scroll for getting desired node.

Can you provide us the proper skin\stylesheet which will minimize the gap between two nodes?

Thanks,
Ankit Trivedi

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Jan 2013, 05:53 AM
Hi Ankit,

You should use the following css rules to reduce the space between the nodes.

CSS:
<style type="text/css">
    div.RadTreeView
    {
        line-height: 16px !important;
    }
         
    div.RadTreeView .rtSp
    {
        height: 14px !important;
    }
         
    div.RadTreeView .rtHover .rtIn, div.RadTreeView .rtSelected .rtIn
    {
        padding: 0px 1px 0px !important;
    }
         
    div.RadTreeView .rtIn
    {
        padding: 1px 2px 1px !important;
    }
</style>

Hope this helps.

Regards,
Princy.
Tags
TreeView
Asked by
Ankit
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or