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

right click and select build rad tree view

9 Answers 77 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 09 Sep 2008, 02:04 PM
the control says to right click and select build rad tree view - when i right click i do not see that option - any video's showing how to drop a control on a page and bind it via the database wizard?

using VS2005 with .net 3.5

9 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 09 Sep 2008, 02:12 PM
Hi Jeff,

You can check the videos in the Telerik Trainer section on our site.
Please select the video from this page:
http://www.telerik.com/support/teleriktrainer/teleriktrainer/b334i-b.aspx

Download the Telerik Trainer application from here:
http://www.telerik.com/support/teleriktrainer.aspx

I hope this will get you started.

Best wishes,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jeff
Top achievements
Rank 1
answered on 09 Sep 2008, 02:18 PM
are these actual video's or online demo's with a little bit of source code?
0
Veselin Vasilev
Telerik team
answered on 09 Sep 2008, 02:22 PM
Hi Jeff,

These are videos (with a narrator) and the complete runnable projects (in C# and VB) are included as well.  

Best wishes,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jeff
Top achievements
Rank 1
answered on 10 Sep 2008, 02:11 PM
can you tell me if it's possible to have the radtreeview on the left and when you click a node id, a grid in the right (same page) is populated with data - the treeview control that ships with asp.net does not seem to have any click events - other than hitting a navigateurl which means we have to pop open a new page for each node click - please advise - thanks.
0
Atanas Korchev
Telerik team
answered on 10 Sep 2008, 02:34 PM
Hello Jeff,

You can use the NodeClick event as demonstrated in this online example.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jeff
Top achievements
Rank 1
answered on 10 Sep 2008, 04:46 PM
getting further - but still have no tree view ;-(

the example for hierachal tree view - the tutorial shows adding the rows for generes - where i am pulling from a stored proc and getting this error when the datatable is returned.

my first 2 rows have nulls for the parentid

This constraint cannot be enabled as not all values have corresponding parent values.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: This constraint cannot be enabled as not all values have corresponding parent values.

Source Error:

Line 18:         RadTreeView1.DataFieldParentID = "OrgParent";
Line 19:         RadTreeView1.DataTextField = "Name";
Line 20: RadTreeView1.DataBind();Line 21:         GridView1.DataSource = createOrgTreeTable();
Line 22:         GridView1.DataBind();
0
Atanas Korchev
Telerik team
answered on 10 Sep 2008, 05:00 PM
Hello Jeff,

This error occurs when some record does not have parent record. Please check if this is not the case. Also root level items should have their ParentID value set to null.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jeff
Top achievements
Rank 1
answered on 10 Sep 2008, 05:44 PM
all records have a parent value, except the top 2 which will be the parent nodes - that look right?

100 null
101 null
102 100
103 100
104 100
105 100
106 100
107 100
108 100
109 100
110 100
111 100
112 100
113 100
114 101
115 101
116 101
117 101
118 101
119 101
120 101
121 101
122 101
123 101
124 101
125 101
0
Jeff
Top achievements
Rank 1
answered on 10 Sep 2008, 08:06 PM
i was able to finally get it - the two columns were of diff data types one and int identity and the other a varchar that was setting the parent's to '0' they were part of a temp table and that mattered. - thanks for all the replies.
Tags
TreeView
Asked by
Jeff
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Jeff
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or