Results 1 to 2 of 2

Thread: TreeNode's from XML File - ToolTip

  1. #1

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    TreeNode's from XML File - ToolTip

    not sure this is the right place for this, but here goes....

    I got a IE Webcontrol TreeView on my page.

    Created a simple xml file, and bind it to the treeview to populate the nodes

    Code:
    <TREENODES>
      <TreeNode text="country">
    	  <TreeNode text="China" >
    		  <TreeNode text="Beijing"/>
    		  <TreeNode text="Shanghai"/>
    		  <TreeNode text="Hunan"/>
    	  </TreeNode>    
        <TreeNode text="USA"/>
        <TreeNode text="Australia"/>
        <TreeNode text="France"/>
      </TreeNode>
    </TREENODES>
    Code:
        //bind the treeview to the sample xml file
        myTreeView.TreeNodeSrc = "xml/treenode.xml";
        myTreeView.DataBind();
    Is it possible to include a node's tooltip text in the xml file? something like ....
    Code:
    <TreeNode text="USA" tooltip="this is a test"/>
    the latter does not work of course

  2. #2

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: TreeNode's from XML File - ToolTip

    ....anyone?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width