TreeView
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngwebcontrols' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Daniel Zielinski
I need comlicated examples of MS Treeview control. The examples MS gives
are pretty simple. I'm trying to bind my treeview to dataview and I want
to do a second pass on it and modify child nodes.
=20
thanks
=20
=20

------------------------------------------------------------------------------
This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please delete it and notify us immediately.

==============================================================================

Reply to this message...
 
    
Tim Maloney
-- Moved from [aspngvs] to [aspngwebcontrols] by Alex Lowe <Click here to reveal e-mail address> --

Maybe this should be in free for all, but I'm not sure I'm subscribed to
that list... (and if I am, that makes 50 different lists ;) )

Does anyone have a example of adding nodes to the Treeview WebControl
through Page_Load? (or a URL would be nice...)

Thanks....

Tim Maloney
Click here to reveal e-mail address
Alliance Consulting
http://www.allianceconsultingllc.com

Reply to this message...
 
    
James Avery
You can do something like this:

var newNode = oTree.createTreeNode();
newNode.setAttribute("text", "Root Node");
oTree.add(newNode);

And this was grabbed right from here:

http://msdn.microsoft.com/workshop/author/behaviors/library/treeview/tre
eview_client_ovw.asp

-----Original Message-----
From: Tim Maloney [mailto:Click here to reveal e-mail address]
Sent: Wednesday, February 06, 2002 12:22 PM
To: aspngwebcontrols
Subject: [aspngwebcontrols] Treeview

-- Moved from [aspngvs] to [aspngwebcontrols] by Alex Lowe
<Click here to reveal e-mail address> --

Maybe this should be in free for all, but I'm not sure I'm subscribed to
that list... (and if I am, that makes 50 different lists ;) )

Does anyone have a example of adding nodes to the Treeview WebControl
through Page_Load? (or a URL would be nice...)

Thanks....

Tim Maloney
Click here to reveal e-mail address
Alliance Consulting
http://www.allianceconsultingllc.com

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

Reply to this message...
 
    
Steve Sharrock (VIP)
Check the article below: (demo + source code)

http://www.aspalliance.com/shark/articles/TreeView/TreeViewDoc.aspx

Steve Sharrock
programmer / designer
www.sharkcode.com

-----Original Message-----
From: Tim Maloney [mailto:Click here to reveal e-mail address]
Sent: Wednesday, February 06, 2002 9:22 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] Treeview

-- Moved from [aspngvs] to [aspngwebcontrols] by Alex Lowe
<Click here to reveal e-mail address> --

Maybe this should be in free for all, but I'm not sure I'm subscribed to
that list... (and if I am, that makes 50 different lists ;) )

Does anyone have a example of adding nodes to the Treeview WebControl
through Page_Load? (or a URL would be nice...)

Thanks....

Tim Maloney
Click here to reveal e-mail address
Alliance Consulting
http://www.allianceconsultingllc.com

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

Reply to this message...
 
    
Steven Yuan
http://www.aspalliance.com/shark/articles/TreeView/TreeViewDoc.aspx
Regards
Stephen Yuan

[Original message clipped]

Reply to this message...
 
    
Tim Maloney
Thanks... The one link for Treeview that I didn't click on because I didn't
really think what I was asking pertained to the 'client'. :)

Tim Maloney
Click here to reveal e-mail address
Alliance Consulting
http://www.allianceconsultingllc.com
----- Original Message -----
From: "James Avery" <Click here to reveal e-mail address>
To: "aspngwebcontrols" <Click here to reveal e-mail address>
Sent: Wednesday, February 06, 2002 12:48 PM
Subject: [aspngwebcontrols] RE: Treeview

[Original message clipped]

Reply to this message...
 
    
Anton Swart
-- Moved from [aspngfreeforall] to [aspngwebcontrols] by James Avery <Click here to reveal e-mail address> --

How is it possible to force the treeview ie webcontrol to only work
server side
As it does when working with Netscape & IE 5 and below...

Thanks

Reply to this message...
 
    
Shannon Cornish
Hi Anton,

    You can set AutoPostBack=3D"true" on the control, that will force
it to post back when you click on an node.

    You can also set the client target of the page to down level to
force all controls to only render down level, like

<%@ Page Language=3D"C#" ClientTarget=3D"DownLevel" %>

HTH,
Shannon,

-----Original Message-----
From: Anton Swart [mailto:Click here to reveal e-mail address]=20
Sent: Wednesday, 1 May 2002 2:19 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] treeview

-- Moved from [aspngfreeforall] to [aspngwebcontrols] by James Avery
<Click here to reveal e-mail address> --

How is it possible to force the treeview ie webcontrol to only work
server side As it does when working with Netscape & IE 5 and below...

Thanks

| [aspngwebcontrols] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.asplists.com/asplists/aspngwebcontrols.asp =3D JOIN/QUIT

Reply to this message...
 
    
SNegussie@aol.com
Hi,

I'm using a treeview control. I would like to load a different page when a
node is selected. I basically want to do what is done on msdn.microsoft.com
right now; click on the treeview nodes on the left, and display the
corresponding page on the right.

I don't want to use NavigateUrl since it takes me to a whole new page. I
want to stay on the page and display the page in another frame on the page
maybe. I am thinking of using the SelectedIndexChanged event and use frames.
Has anyone done something similar to this? If so, can you send me code
snippets? Also, it would help me if anyone can direct to an article that
does this.

Thanks
S
Reply to this message...
 
    
James Avery
The easiest solution would be to use the target attribute and set it to
the frame you are using, then use navigateurl for the url.

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]
Sent: Tuesday, June 25, 2002 9:25 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] Treeview

Hi,

I'm using a treeview control. I would like to load a different page
when a node is selected. I basically want to do what is done on
msdn.microsoft.com right now; click on the treeview nodes on the left,
and display the corresponding page on the right.

I don't want to use NavigateUrl since it takes me to a whole new page.
I want to stay on the page and display the page in another frame on the
page maybe. I am thinking of using the SelectedIndexChanged event and
use frames. Has anyone done something similar to this? If so, can you
send me code snippets? Also, it would help me if anyone can direct to
an article that does this.

Thanks
S | [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID |
http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT
Reply to this message...
 
    
Simon Wright
http://www.aspalliance.com/shark/articles/TreeView/TreeViewDoc.aspx
<http://www.aspalliance.com/shark/articles/TreeView/TreeViewDoc.aspx>

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]
Sent: 25 June 2002 14:25
To: aspngwebcontrols
Subject: [aspngwebcontrols] Treeview

Hi,

I'm using a treeview control. I would like to load a different page when a
node is selected. I basically want to do what is done on msdn.microsoft.com
right now; click on the treeview nodes on the left, and display the
corresponding page on the right.

I don't want to use NavigateUrl since it takes me to a whole new page. I
want to stay on the page and display the page in another frame on the page
maybe. I am thinking of using the SelectedIndexChanged event and use
frames. Has anyone done something similar to this? If so, can you send me
code snippets? Also, it would help me if anyone can direct to an article
that does this.

Thanks
S | [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID |
http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT
Reply to this message...
 
    
SNegussie@aol.com
Can I use NavigateURL and SelectedIndexChange event together? This is
basically what I want to do.

- Set the url to go to using the NavigateURL
- Set the target attribute to load the page in the right page
- Put some business logic in the SelectedIndexChange event

I am not able to use the SelectedIndexChange event when I set the NavigateUrl
attribute.
Reply to this message...
 
 
System.Web.UI.WebControls.WebControl
System.Windows.Forms.TreeView




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com