When you move your mouse over the treeview node (+), you will see at the bottom of the browser that it will call a javascript methid TreeView_ToggleNode. I just googled it and came across this.
http://geekswithblogs.net/rajiv/archive/2006/03/16/72575.aspx
When you move your mouse over the treeview node (+), you will see at the bottom of the browser that it will call a javascript methid TreeView_ToggleNode. I just googled it and came across this.
http://geekswithblogs.net/rajiv/archive/2006/03/16/72575.aspx
See if this helps.
</div> </div>
That was exactly I wanted !!! [:D] Thanks friend, you understood me perfectly!!!
p.o.d.
Member
325 Points
110 Posts
Expand treeview on node click
May 14, 2008 01:15 PM|LINK
Can I expand treeview by clicking it's node like I expand it clicking "+" ?
http://msguy.net/
bullpit
All-Star
21838 Points
4822 Posts
Re: Expand treeview on node click
May 14, 2008 01:36 PM|LINK
See if the SelectAction property helps.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treenode.selectaction.aspx
Max
Let Me Google That For You!
p.o.d.
Member
325 Points
110 Posts
Re: Expand treeview on node click
May 14, 2008 01:46 PM|LINK
I'll try explain again.
I don't need page postback, when I click "+" it doesn't do postback, it just expands, can I do the same by clicking the node?
http://msguy.net/
chubbspet
Member
257 Points
428 Posts
Re: Expand treeview on node click
May 14, 2008 01:48 PM|LINK
IFor your treeview, you will need to create some client side event like
OnTreeNodeExpanded
="Test"Then in your aspx create a sub procedure called "test"
Now you will need to test the different returning arguments - I'm guessingByVal
e As TreeNodeEventArg And put an If statement checking what e is...Hope this gives you some idea
bullpit
All-Star
21838 Points
4822 Posts
Re: Expand treeview on node click
May 14, 2008 01:55 PM|LINK
When you move your mouse over the treeview node (+), you will see at the bottom of the browser that it will call a javascript methid TreeView_ToggleNode. I just googled it and came across this. http://geekswithblogs.net/rajiv/archive/2006/03/16/72575.aspx
See if this helps.
Max
Let Me Google That For You!
BryianTan
Contributor
5626 Points
1083 Posts
Re: Expand treeview on node click
May 14, 2008 10:20 PM|LINK
hi, have you try newNode.SelectAction = TreeNodeSelectAction.Expand;, i don't know your code structure but this is what i use in my treeview
MCP, MCAD, MCTS
My blog...
p.o.d.
Member
325 Points
110 Posts
Re: Expand treeview on node click
May 15, 2008 09:49 AM|LINK
That was exactly I wanted !!! [:D] Thanks friend, you understood me perfectly!!!
Everything works fine.
thanks everybody for your unsvers
http://msguy.net/
bullpit
All-Star
21838 Points
4822 Posts
Re: Expand treeview on node click
May 15, 2008 11:48 AM|LINK
Which post are you referring to? Please mark the appropriate post as the answer.
Max
Let Me Google That For You!
wab1127
Member
4 Points
2 Posts
Re: Expand treeview on node click
Dec 13, 2012 07:25 PM|LINK