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

Bind to object without IDs

1 Answer 32 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 18 Mar 2013, 10:51 PM
The object structure I'm trying to bind to TreeList has nested Lists as properties, but no ID fields. Can I bind to the TreeList control in such a way that its structure matches the structure of my object without the need for setting the key properties?

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 21 Mar 2013, 01:12 PM
Hello Matt,

In order to be bound correctly the RadTreeList needs to have set the DataKeyNames and the ParentDataKeyNames properties. If you have unique field and parent field into your data source the RadTreeList can be bound to it. Also more information about RadTreeList control you can fine here:
http://www.telerik.com/help/aspnet-ajax/treelist-understanding-structure.html

I hope this helps.

Kind regards,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeList
Asked by
Matt
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or