Bind to object without IDs

2 posts, 0 answers
  1. Matt
    Matt avatar
    14 posts
    Member since:
    May 2012

    Posted 18 Mar 2013 Link to this post

    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?
  2. Radoslav
    Radoslav avatar
    1564 posts

    Posted 21 Mar 2013 Link to this post

    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:

    I hope this helps.

    Kind regards,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top