Tree binding question

3 posts, 1 answers
  1. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 16 May 2012 Link to this post

    Hi

    I have a table of data the first 2 columns are Manufacturer and model as varchars.

    ie
    Manufacturer    Model
    Man 1                Mod1
    Man 1                Mod 2
    Man 1                Mod 3
    Man 2                Mod 4
    Man 3                Mod 5

    Can this be bound such that the top level of the tree shows
    Man 1
    Man 2
    Man 3

    And expaned to show the models.

    I get an error saying 'This constraint cannort be enabled as not all values have a corresponding parent.
    Andy
  2. Answer
    Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 21 May 2012 Link to this post

    Hello Andy,

     
    By default this kind of binding is not supported by RadTreeView but you can add the nodes one by one by checking if RadTreeView already contains such node as it is done in the attached project.

    Hope this will be helpful.

    Greetings,
    Plamen Zdravkov
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 22 May 2012 Link to this post

    Thanks Plamen

    Just what I needed, and a useful code snippet.

    Andy
Back to Top