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

Unable to format treeview properly

1 Answer 26 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 20 Oct 2014, 03:45 AM
Hello.

We have an old application created in silverlight that we now need to replicate in asp.net webforms.  Here's an image of the old page silverlight treeview we need to replicate (note the data aligned to the right as well):
http://netmarketingllc.com/client/myfiles/Treeview_Siverlight.jpg

I tried replicating this in the telerik treeview but haven't had much luck with the formatting.  Here's my telerik attempt:
http://netmarketingllc.com/client/myfiles/treeview_telerik.jpg

To set it up this way, I had tried an html table, but it seems to be jumping to the next line.  Here's a sample of some html I was inserting (via c# code):
"<table style='width:100%;'><tr><td style='width:50%;text-align:left;'><b>" + id + "</b> " + headerName + "</td>"
+ "<td style='width:50%;text-align:right;color:blue;'>Total Cost: $" + (totalCost ?? 0).ToString("0.00") + "</td></tr></table>";

Any idea how I can get my treeview to look similar to the original silverlight version?  In particular, how to keep telerik from doing a line break?
Thanks

1 Answer, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 22 Oct 2014, 10:57 AM
Hello Ryan,

The second link doesn't work. If you want to hide the line dotted line between the nodes set ShowLineImages property to false:

<telerik:RadTreeView ID="RadTreeView1" runat="server" MultipleSelect="true" ShowLineImages="false">


Regards,
Hristo Valyavicharski
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
Ryan
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or