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
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.