I'm trying to add a label control to a TreeNode at run time.
My logic is basically as follows:
My problem is that when this renders, the first line of text no longer appears NEXT to the line indicating its position in the tree. Instead, the entire node appears several spaces BELOW the tree view line.
so instead of looking like
+ -- Text
and additional information
it looks like
+--
Text
and additional information
Is there any way to use a line break and still have the node appear next to the tree line?
My logic is basically as follows:
RadTreeNode childNode = new RadTreeNode("text"); |
Label lbl1 = new Label(); |
lbl1.Text = "text <br/> and additional information"; |
childNode.controls.Add(lbl1); |
parentNodes.nodes.add(childnode); |
My problem is that when this renders, the first line of text no longer appears NEXT to the line indicating its position in the tree. Instead, the entire node appears several spaces BELOW the tree view line.
so instead of looking like
+ -- Text
and additional information
it looks like
+--
Text
and additional information
Is there any way to use a line break and still have the node appear next to the tree line?