Custom root node(s) DataFieldParentID (not null and not default value)

7 posts, 0 answers
  1. AdrianTaylor
    AdrianTaylor avatar
    10 posts
    Member since:
    Apr 2009

    Posted 08 May 2009 Link to this post

    A root node is interpreted by RadTreeView as any node with a DataFieldParentID of null or empty default value.

    I have a hierarchy which is cut from a larger hierarchy and as a result, the Parent value (a Guid in this case) of the nodes I want to root are set to specific values.  As I am binding to an ObjectDataSource I simply overwrite the Parent Guid for the root nodes in my BL with Guid.Empty.

    However it would be nice if there were some way to specify the root value to hook on to so this fudge would not be necessary.

    One alternative I tried was to create a static node with a value of the specific root Guid I want to hook on to.  However I found that even with AppendDataBoundItems enabled the bound data does not hook on to the single, static, root node.

    Has anyone else shared my experience?

  2. Matthew
    Matthew avatar
    16 posts
    Member since:
    Dec 2010

    Posted 07 Dec 2010 Link to this post

    Yup, it'd be great if the heirachical bound controls had a 'root node ID' property you could specifiy, for when your binding to a subset of some heirachical data.
  3. Jean-Yves
    Jean-Yves avatar
    69 posts
    Member since:
    Feb 2009

    Posted 04 Feb 2011 Link to this post

    Up Up Up :)

    In fact, I have a huge TreeView representing hierarchy level in my company. It's very usefull, like this I can select a level very easily.
    And sometimes, I would like to display only a small part of this hierarchy... It would be so great to say: 

    RootParentID = 17

    And automatically, we display only all the elements from where the parentID is 17.

    If you have another way to do it... I would be happy to learn it :)

    Thank you

  4. DiJ8
    DiJ8 avatar
    2 posts
    Member since:
    Mar 2007

    Posted 11 May 2011 Link to this post

    Can this be done yet?

    I can get my RADTreeview to work when the ParentID = 0 but the RADMenu doesn't. And in the case of the RADMenu, sometimes I am working from a different root value anyway. This seems like a really simple idea. Is it ever going to happen?
  5. Curtis
    Curtis avatar
    26 posts
    Member since:
    Jan 2008

    Posted 04 Sep 2015 Link to this post

    I also would like this functionality and am surprised after all these years it hasn't been incorporated yet.
  6. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 07 Sep 2015 Link to this post

    Hi guys,

    Thank you for your feedback. Please create an item in our feedback portal and vote for it (like) to increase its priority. 

    Peter Filipov
    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 Feedback Portal and vote to affect the priority of the items
  7. Neal
    Neal avatar
    1 posts
    Member since:
    Jan 2019

    Posted 29 Jan 2019 in reply to Jean-Yves Link to this post


    I need for RadTreeList.

    Please Help me ...

Back to Top