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

Root Nodes Alignment

1 Answer 103 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 03 Aug 2011, 05:50 PM
I have a treeview defined like this:

<telerik:RadTreeView ID="tvHierarchy" runat="server" CheckBoxes="True" LoadingStatusPosition="BeforeNodeText" OnClientNodeChecked="tv_Check" OnClientNodeClicking="tv_Clk">
   <CollapseAnimation Duration="100" Type="None" />
    <ExpandAnimation Duration="100" />
</telerik:RadTreeView>

I want to populate the tree with multiple root nodes, so I'm trying this way:

For Each rootNode As dbo_BASE_NODE In rootNodes
   Dim node As New RadTreeNode()
   node.Text = rootNode.BN_ID & " " & rootNode.BN_NAME
   node.Value = rootNode.HN_RID
   tvHierarchy.Nodes.Add(node)
Next

But everything is aligning to the right like this (Please see attachment radtreeview.jpg).

I need all root nodes to align to the left with as little "whitespace" as possible.  There is no whitespace in the data.

Thanks,
Rob

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Aug 2011, 06:10 AM
Hello Dudeman,

Try setting the CSS as shown below.
CSS:
<style type="text/css">
 .RadTreeView .rtUL .rtLI .rtUL
 {
    padding-left: 0px !important;
 }
</style>

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