Binding nested objects

2 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 23 Jul 2010 Link to this post

    Heres a sample structure


    So I want to have a combo box which contains every person who exists in Area.  However the DataTextField exists way back in Person.  So I can get that by navigating up the reference fields in the code behind, but I have NO idea how to do this in the markup...whenever I try and nest the object like if I set the DS to Area, then do Student.Person.FirstName it will tell me Student or Person isn't a property of Area...

    How do I configure the OADataSource to do that?
  2. PetarP
    PetarP avatar
    754 posts

    Posted 29 Jul 2010 Link to this post

    Hi Steve,

     I would advice you to have a look in this blog post. The blog post explains how to handle hierarchical set of data. Even though the blog is targeted at our data source in combination with a rad grid the same is achieved with combo box as well. I hope you find the blog post useful.
    Please do contact us if you face any problems.

    Best wishes,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top