Loading ...
Sorry, an error occurred while loading the content.

49080Re: How to check whether the selected TextNode is the root node

Expand Messages
  • Flinn2112
    May 27, 2009
    • 0 Attachment
      --- In ydn-javascript@yahoogroups.com, "rumesh_san" <rumesh_san@...> wrote:
      >
      > Hi,
      >
      > I'm a newbie to yui. So could anyone help me to check whether the selected TextNode is the root node. I'm referring this to the context menu based TreeView.
      >
      > Thanks in advance
      >
      > Regards,
      > Rumesh
      >
      Hi Rumesh,
      hope I did not misunderstand your question.
      Do a getRoot ( ) on the treeview (i.e. NS2112.REPOSITORY.m_RepositoryTree.getRoot())
      which will give you a NODE back.
      and compare the properties for the node that was clicked with the returned node.

      Kind Regards

      Frank
    • Show all 4 messages in this topic