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

nodeclicked is not a member of 'Telerik.Web.UI.RadTreeNodeEventArgs'

2 Answers 112 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Bryan Davis
Top achievements
Rank 1
Bryan Davis asked on 12 Aug 2009, 02:09 PM
Hello everyone, I am having a problem with some code here.  From everything I read this code should work so I don't really know whats going on.  The code highlighted in bold is what is giving me errors.  Can anyone help?  Thanks

Imports

 

System.IO

 

Imports

 

Telerik.Web.UI

 

Imports

 

System.Collections

 

Imports

 

System

 

Imports

 

System.ComponentModel

 

Imports

 

System.Data

 

Imports

 

System.Drawing

 

Imports

 

System.Web

 

Imports

 

System.Web.SessionState

 

Imports

 

System.Web.UI

 

Imports

 

System.Web.UI.WebControls

 

Imports

 

System.Web.UI.HtmlControls

 




 

Protected Sub RadTreeView1_NodeExpand(ByVal o As Object, ByVal e As RadTreeNodeEventArgs)

 

 

If e.NodeClicked.Nodes.Count = 0 Then

 

BindDirectory(e.NodeClicked.Value, e.NodeClicked.Nodes)

 

End If

 

 

End Sub

 

 

Protected Sub RadTreeView1_NodeClick(ByVal o As Object, ByVal e As RadTreeNodeEventArgs)

 

SelectNode(e.NodeClicked)

 

End Sub

 

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 12 Aug 2009, 02:13 PM
Hi Bryan Davis,

This code will not work with the latest release of RadTreeView for ASP.NET Ajax. The NodeClicked property was part of RadTreeView classic. If you are using the up-to-date version you should use the e.Node property.

Greetings,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Bryan Davis
Top achievements
Rank 1
answered on 12 Aug 2009, 02:24 PM
This seems to be working.  e.node that is. 

Thanks a bunch, ive been strugling on that for hours.
Tags
TreeView
Asked by
Bryan Davis
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Bryan Davis
Top achievements
Rank 1
Share this question
or