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

3 posts, 0 answers
  1. Bryan Davis
    Bryan Davis avatar
    24 posts
    Member since:
    Jan 2008

    Posted 12 Aug 2009 Link to this post

    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. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 12 Aug 2009 Link to this post

    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.
  3. Bryan Davis
    Bryan Davis avatar
    24 posts
    Member since:
    Jan 2008

    Posted 12 Aug 2009 Link to this post

    This seems to be working.  e.node that is. 

    Thanks a bunch, ive been strugling on that for hours.
Back to Top