Last post Nov 10, 2008 07:39 AM by Matter
Dec 02, 2005 04:10 PM|sphatak|LINK
possible to get the index of the node selected or the text selected in any other way on the client side?
Any help with me highly appreciated!
Jan 04, 2006 07:19 AM|UBGandalf|LINK
Jan 04, 2006 11:03 PM|hkhawaja|LINK
You need to override the events and point them to JS methods.
In the aspx page add this JS method, assuming your treeview object is called treeView.
Then in Page_Load add the following:
This should let you expand and collapse client side with no round trips.
Jan 19, 2006 06:07 AM|Sophie|LINK
Hi..this is working to suppress the expand event and for avoiding postback
But when i try to select any child node an exception is being thrown.It says
The node at index 0.0 is not currently displayed in the tree. SelectedNodeIndex cannot be set to an undisplayed node .
Can some one help me ???..Thanks in advance!!!
Mar 25, 2008 08:05 AM|shaikhather|LINK
It is a very late reply but still you are looking for better solution it is here.
set the following if you are using ASP.NET 2.0
nodeCat.SelectAction = TreeNodeSelectAction.None
Nov 10, 2008 12:52 AM|Matter|LINK
Nov 10, 2008 07:39 AM|Matter|LINK
friends, i am waiting for the reply as i stuck at this point. any [Idea]