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

RadTreeView - missing API

4 Answers 41 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Simonas
Top achievements
Rank 1
Simonas asked on 03 Sep 2014, 04:06 PM
Hi,

I've downloaded trial version of Telerik controls for WinForms mainly to verify if RadTreeView contains required functionality. After playing around for a while I've noticed that it doesn't have couple of methods that are documented in Telerik site:

1) There's no method to add RadTreeNode to RadTreeNodeCollection using Add() method.
http://www.telerik.com/help/winforms/treeview-working-with-nodes-adding-and-removing-nodes.html

2) There's no method to insert RadTreeNode using index to RadTreeNodeCollection:
http://www.telerik.com/help/winforms/treeview-working-with-nodes-reordering-nodes.html

Is it limitation for trial version or is this functionality removed?

4 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 04 Sep 2014, 07:34 AM
Hi Simonas,

Thank you for writing.

The methods mentioned are still present and fully functional. Here is how to use them:
RadTreeView tree = new RadTreeView();
this.Controls.Add(tree);
tree.Nodes.Add(new RadTreeNode("addedNode"));
tree.Nodes.Insert(0, new RadTreeNode("insertedNode"));

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Simonas
Top achievements
Rank 1
answered on 04 Sep 2014, 07:54 AM
Hi Stefan,
Thanks for code snippet, but I still can't see this API in the downloaded assemblies. Here's the screenshot of what Object Browser shows for RadTreeNodeCollection. Let me know if I'm doing something wrong.

Version : 2014.2.715.20
0
Accepted
Stefan
Telerik team
answered on 05 Sep 2014, 06:44 AM
Hello,

RadTreeNodesCollection inherits from NotifyCollection<RadTreeNode>, which inherits from Collection<T> and the Add(T) method is defined in the latter and is public, hence this method can be used as I demonstrated in the below example. If you still experience issues, please open a new support ticket where you can attach a sample together with the assemblies you use and we will review the precise case.

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Simonas
Top achievements
Rank 1
answered on 05 Sep 2014, 08:00 AM
Found it. You need to have Telerik.WinControls assembly added together with Telerik.WinControls.UI to get all the methods - Insert/Add RadTreeNode.

Thanks !
Tags
Treeview
Asked by
Simonas
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Simonas
Top achievements
Rank 1
Share this question
or