Search

You searched for the word(s): userid:768264

Matching Posts

  • Re: ASP.NET 2.0 Treeview Autopostback

    I'm guessing you've found a solution to this problem by now, but I've put together a javascript may help you. On a right click event it will grab the Tree Node value, put it in a hidden field for a post back later, and highlight the node. VS 2005 doesn't like it, but disable the normal context menu and add the "oncontextmenu" attribute inside the treeview tag as follows: < asp : TreeView oncontextmenu ="TreeView1_ContextMenu()" > </ asp : TreeView >
  • Re: Looping through TreeView Nodes?

    Here's a couple of subs I put together to loop through all treenodes. I had to loop through the tree for a node with a specific value to select and expand it. hope this helps. Private Sub RecurseNodes( ByVal searchValue As Integer ) For Each tn As TreeNode In TreeView1.Nodes If tn.Value = searchValue Then tn.Expand() tn.Select() Exit For End If If tn.ChildNodes.Count > 0 Then For Each cTn As TreeNode In tn.ChildNodes recurseChildren(cTn, searchValue) Next End If Next End Sub Private Sub recurseChildren
    Posted to Internet Explorer Web Controls (Forum) by bsharp3 on 11/9/2007
Page 1 of 1 (2 items)