Great product by the way. Simply awesome. The skins, performance, everything, is the best around.
Thanks,
Levi
8 Answers, 1 is accepted
Indeed, I am not quite sure what do you mean by "two column treeview".
Have you checked the Templates section in our:
I hope this will get you started.
All the best,
Veskoni
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I too need a 'multicolumn tree view' - something similar to this:
http://extjs.com/deploy/dev/examples/tree/column-tree.html
What I need to implement is a sleek UI for assigning access rights.
On the left side I will have a simple Tree with Roles / Users;
On the right side I need a multi-column TreeView with a few columns:
- one column with the actual Tree: the resources to be accessed (categories and subcategories)
- multiple columns with check boxes for each access right
Do you have any suggestions on how I could implement such a Tree View?
Thanks!
Alicia
Thanks!
Jay (happy Telerik customer)
The code for NodeTemplate goes along these lines:
<telerik:RadTreeView ID="tv" runat="server" CheckBoxes="false" OnNodeDataBound="tv_NodeDataBound" OnDataBinding="tv_DataBinding" >
<DataBindings>
<telerik:RadTreeNodeBinding/>
</DataBindings>
<NodeTemplate>
<table width="500px" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><%# DataBinder.Eval(Container, "Text") %></td>
<td width="40px"><asp:CheckBox ID="chkDeny" runat="server" OnCheckedChanged="chkDeny_CheckedChanged" AutoPostBack="true" /> </td>
<td width="40px"><asp:CheckBox ID="chkView" runat="server" OnCheckedChanged="chkView_CheckedChanged" AutoPostBack="true" /> </td>
<td width="40px"><asp:CheckBox ID="chkCreate" runat="server" OnCheckedChanged="chkCreate_CheckedChanged" AutoPostBack="true" /> </td>
<td width="40px"><asp:CheckBox ID="chkUpdate" runat="server" OnCheckedChanged="chkUpdate_CheckedChanged" AutoPostBack="true" /></td>
<td width="40px"><asp:CheckBox ID="chkDelete" runat="server" OnCheckedChanged="chkDelete_CheckedChanged" AutoPostBack="true" /></td>
</tr>
</table>
</NodeTemplate>
</telerik:RadTreeView>
As I load my data from an XML, binding the CheckBox state goes something like this:
CheckBox deny = (CheckBox)currentTreeNode.FindControl("chkDeny");
if (deny != null)
{
XmlAttribute attr = node.Attributes["IsDenied"];
deny.Checked = (attr !=
null && attr.Value == "1");
}
Hope it helps,
Alicia
http://demos.devexpress.com/ASPxTreeListDemos/Appearance/GridLinesTreeLines.aspx
This addition would be great to the already awesome Telerik libraries.
Levi
I think you are right - aligning things properly will be very hard ... probably VERY hard (I cant see your uploaded image).
Thanks,
Jay
Alicia