Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 1st, 2004, 04:47 PM
Authorized User
 
Join Date: Sep 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tree View Control

Can anyone help me how to find the node which is picked for expanding...

i want to collapse the node which is allready expanded when someother node is clicked for expansion.

Thank You.

 
Old September 2nd, 2004, 10:31 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

As far as I know, the TreeView control is not included in ASP.Net 1.1 (it is in ASP.Net 1.0). If this is what you are using, you can find the treenode index (the one that you picked) by determining which node received the event (for example, the onexpand event).

The treeview's nodes are indexed starting at 0 and any child of "0" gets appended with a "." and then starts again at "0" and so forth.
For example:

0
 0.0
 0.1
  0.1.0
1
 1.0
  1.0.0
2
 2.0

...and so forth. It is also important to note that this control is not supported by Microsoft and it's nice, but it's not great. Last I heard there was supposed to be an updated version of this in Whidbey, but I haven't had a chance to check it out.

J
 
Old September 3rd, 2004, 11:40 AM
Authorized User
 
Join Date: Sep 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Sorry for the delay

i figured out how to work with it and now i have a oncheck event for treeview..

&LTSCRIPT language="jscript" FOR="TreeView1" EVENT="onCheck"&GT
var node=TreeView1.getTreeNodewindow.event.srcElement. clickedNodeIndex);
alert(node.getAttribute("Checked"));
&LTSCRIPT &GT

it works fine when all the checkboxes are not checked...but if i make them checked=true at runtime...it seems to behave buggy...

can someone help me with this.

Thank You,
Praneetha






Similar Threads
Thread Thread Starter Forum Replies Last Post
Tree View Control Java script Expand /CollpaseAll Ram Naresh General .NET 0 July 10th, 2006 05:08 AM
Tree View Control host in SPS Ram Naresh General .NET 0 July 10th, 2006 05:07 AM
Tree view control g_vamsi_krish ASP.NET 1.0 and 1.1 Basics 2 April 4th, 2006 11:02 PM
Microsoft Tree view control humour General .NET 0 November 27th, 2004 09:40 AM
Tree View Control pran ASP.NET 1.0 and 1.1 Professional 1 September 2nd, 2004 11:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.