This is a migrated thread and some comments may be shown as answers.

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

6 Answers 169 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
AdrianTaylor
Top achievements
Rank 1
AdrianTaylor asked on 08 May 2009, 09:34 AM
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?

Thanks

6 Answers, 1 is accepted

Sort by
0
Matthew
Top achievements
Rank 1
answered on 07 Dec 2010, 10:33 AM
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.
0
Jean-Yves
Top achievements
Rank 1
answered on 04 Feb 2011, 10:45 PM
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

Jean-Yves
0
DiJ8
Top achievements
Rank 1
answered on 11 May 2011, 05:41 AM
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?
0
Curtis
Top achievements
Rank 1
answered on 04 Sep 2015, 05:34 AM
I also would like this functionality and am surprised after all these years it hasn't been incorporated yet.
0
Peter Filipov
Telerik team
answered on 07 Sep 2015, 11:19 AM
Hi guys,

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

Regards,
Peter Filipov
Telerik
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
0
Neal
Top achievements
Rank 1
answered on 29 Jan 2019, 10:41 AM

Hi

I need for RadTreeList.

Please Help me ...

Tags
TreeView
Asked by
AdrianTaylor
Top achievements
Rank 1
Answers by
Matthew
Top achievements
Rank 1
Jean-Yves
Top achievements
Rank 1
DiJ8
Top achievements
Rank 1
Curtis
Top achievements
Rank 1
Peter Filipov
Telerik team
Neal
Top achievements
Rank 1
Share this question
or