Accessing TreeView Control properties on the client side

Posted: 06-26-2003, 05:32 AM
Hi ,

I want to disable (AutoPostBack) for the tree . So on the
click event I am able to retrieve the index of the node
clicked on the client side .

I wish to retrieve the nodedata or another element that I
can selectively pass to the server ,which can identify the
node .

Thanks in Advance,

Soumitra
Reply With Quote

Responses to "Accessing TreeView Control properties on the client side"

Soumitra Bajpai
Guest
Posts: n/a
 
Re: Accessing TreeView Control properties on the client side
Posted: 06-26-2003, 11:29 AM

Hi Natty,

Thanks for the solution. I got that.

For everybody else

function myfunc()
{
var SelectedNode;
// This gives you the node that is clicked
SelectedNode=TreeView1.getTreeNode
(TreeView1.clickedNodeIndex);
// just checks and returns a property of the node
if (SelectedNode!=null)
{
alert(SelectedNode.getAttribute("text"));
}
}

Tie this in to the onclick event of the tree.

Hope this helps

Warm Regards,

Soumitra
>-----Original Message-----
>refer to :
>http://msdn.microsoft.com/library/default.asp?
url=/workshop/webcontrols/
>behaviors/library/treeview/treeview_client_ovw.asp
>
>Natty Gur, CTO
>Dao2Com Ltd.
>28th Baruch Hirsch st. Bnei-Brak
>Israel , 51114
>
>Phone Numbers:
>Office: +972-(0)3-5786668
>Fax: +972-(0)3-5703475
>Mobile: +972-(0)58-888377
>
>Know the overall picture
>
>
>*** Sent via Developersdex http://www.developersdex.com
***
>Don't just participate in USENET...get rewarded for it!
>.
>
Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending Client Side Event ? John Saunders ASP.NET Building Controls 2 09-08-2003 01:09 PM
Vb ocx with asp file in client side tammy ASP Components 1 08-27-2003 02:42 PM
server-side ASP w/ client -side component Miguel Guerreiro ASP Components 1 08-05-2003 12:09 AM
client side secrets Bas Bloemsaat PHP Development 18 07-18-2003 10:05 PM
Client side validation in footer row Roger Moore ASP.NET Data Grid Control 0 07-01-2003 01:14 PM