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

treelist not showing child items

1 Answer 221 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 24 Sep 2014, 12:31 PM
I've verified that my parent item data matches the parent nodes, and I've nulled the parent "parent item" field so the parents show up, but no child items show up no matter what I do to tweak things.

I've read every thread I can find and this should be so simple from the demo examples.

is there some trick I'm missing that I can't find the post for?

Here's my markup:

<telerik:RadTreeList ID="RadTreeList1" runat="server" OnNeedDataSource="RadTreeList1_NeedDataSource" ParentDataKeynames="Owner" DataKeyNames="Title" AutoGenerateColumns="false" OnItemDataBound="RadTreeList1_ItemDataBound" > <Columns> <telerik:TreeListBoundColumn DataField="Title" UniqueName="Title" HeaderText="Menu Item"> </telerik:TreeListBoundColumn> <telerik:TreeListBoundColumn DataField="Owner" UniqueName="Owner" HeaderText="Parent Item"> </telerik:TreeListBoundColumn> <telerik:TreeListBoundColumn DataField="Time" UniqueName="Time" HeaderText="Children"> </telerik:TreeListBoundColumn> <telerik:TreeListBoundColumn DataField="Notes" UniqueName="Notes" HeaderText="Notes"> </telerik:TreeListBoundColumn> </Columns> </telerik:RadTreeList>

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 29 Sep 2014, 11:44 AM
Hello Dan,

Thank you for contacting us.

Can you please verify that your data source has the appropriate structure for treelist-type visualization? You can check the binding of the second control RadTreeList2 for a reference in the following live sample:
http://demos.telerik.com/aspnet-ajax/treelist/examples/databinding/simplevsadvancedbinding/defaultcs.aspx

I'm also sending a random web site sample to demonstrate a basic LoadOnDemand binding:
http://demos.telerik.com/aspnet-ajax/treelist/examples/databinding/loadondemand/defaultcs.aspx

If the issue remains, please create a very basic runnable web site demonstrating the problematic behavior and send it to us. Thus, we will be able to further debug and analyze the project and try to determine the cause of the problem.

Regards,
Eyup
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
TreeList
Asked by
Dan
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or