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 28th, 2004, 02:01 PM
Authorized User
 
Join Date: Sep 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default TreeVIew

can some one help with finding the nodeindex of a treeview using javascript (not codebehind)

say i am looping thru TreeView1.getChildren() and as i am looping thru each child i want to know teh node index..

i know there is clickednodeindex and selectednodeindex...

Thank You

 
Old September 28th, 2004, 03:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

But it's different when dealing with javascript; it probably uses span or div tags to show and hide the children, and those ID's change with variances in the data... that would be really hard to do in javascript, unless you write the javascript in the code-behind (through Page.RegisterClientScriptBlock).

Brian
 
Old September 29th, 2004, 12:21 PM
Authorized User
 
Join Date: Sep 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

no

it is not still treated as treeview in javascript..

here is the link where you can learn about it

http://msdn.microsoft.com/library/de...w/treeview.asp

and the answer to my question is

node.getNodeIndex()

Thank you.






Similar Threads
Thread Thread Starter Forum Replies Last Post
treeview mahmutmol ASP.NET 2.0 Basics 0 August 21st, 2006 06:43 AM
treeview SAIGORTI SQL Language 2 September 6th, 2005 07:31 PM
TreeView - Please help dotnetprogrammer VS.NET 2002/2003 1 September 5th, 2005 09:02 AM
Treeview dkr72 VBScript 0 November 9th, 2004 12:07 PM
treeview MANOJMETAL ADO.NET 1 April 17th, 2004 08:46 AM





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