Hello, i have the following problem:
Using the TreeView with a LINQ dataa source (hierarchical), the tree does not load correctly. Everything is shown as a list:
Using the TreeView with a LINQ dataa source (hierarchical), the tree does not load correctly. Everything is shown as a list:
<telerik:RadTreeView ID="t" runat="server" DataSourceID="lnq" DataFieldID="CategoryId" DataFieldParentID="ParentId" DataTextField="Name"> </telerik:RadTreeView>
<asp:LinqDataSource ID="lnq" runat="server" ContextTypeName="BLA.DataContext"
OrderBy="Name" Select="new (CategoryId, Name, ParentId)" TableName="Categories">
</asp:LinqDataSource>
I really don't see what is the problem :(
This is a sample of the data (CategoryId, Name, ParentId)
1,"First node",
NULL
2,"TEST 2222",1
3,"Test 13453",2
4,"zuzud",3
Best regards,
Lucian