|
Subject:
|
TreeVIew
|
|
Posted By:
|
pran
|
Post Date:
|
9/28/2004 2:01:23 PM
|
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
|
|
Reply By:
|
bmains
|
Reply Date:
|
9/28/2004 3:02:44 PM
|
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
|
|
Reply By:
|
pran
|
Reply Date:
|
9/29/2004 12:21:26 PM
|
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/default.asp?url=/workshop/webcontrols/overview/treeview.asp
and the answer to my question is
node.getNodeIndex()
Thank you.
|