I'm trying to style a RADTreeView (Q1 2010) so that:
- The line height is reduced so I can fit a large number of nodes in a limited area
- The extra space and padding on the left side of each node is removed
- Text wraps with the wrapping text being flush with the text above it
I'm very close but the text wrap isn't working correctly. When the text wraps, it overlaps with other items in the tree. See the screen shot - I've highlighted the problem with a red box.
Here is the css I've hacked my way into:
.refinementTreeView .rtLI .rtTop, |
.RadTreeView .rtLI .rtMid, |
.RadTreeView .rtLI .rtBot |
{ height:13px !important;} |
.RadTreeView .rtUL |
{ padding-top:0px !important; margin-top:0px !important;} |
.RadTreeView .rtUL .rtUL |
{ padding-top:0px !important; margin-top:0px !important; padding-bottom:0px !important; margin-bottom:0px !important; white-space:normal !important;} |
.treeView_NoChilds { padding: 0 !important; font-size: 9px !important;} |
.treeView_NoChilds is being applied in the code behind to each tree node via the ContentCssClass property.
The tree itself is inside a div which is inside a table cell with a fixed width. The tree in the aspx is defined as:
<telerik:RadTreeView ID="treeViewProduct" runat="server" ShowLineImages="False" AppendDataBoundItems="True" DataFieldID="ID" DataFieldParentID="ParentID" > |
Each node is output as a html hyperlink for the product name and text as the count. Any help would be appreciated. Thanks.