How to add Child nodes to Tree view control from client side(Java Script).

Posted by Girinarra under ASP.NET on 1/27/2010 | Views : 6118 | Status : [Member] | Replies : 4
Hi All,

How to add child nodes to tree view control in client side (java script).
I am looking for Java Script code to add child nodes to tree view control.

Please let me know any one of you have solution for this problem.


Thanks in Advance,
Giri




Responses

Posted by: Abhi2434 on: 1/28/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
TreeView is actually rendered as tables in client side.
See the html that is rendered in the browser and mimic the same through Javascript.

You can add element directly from client side using
document.createElement, appendChild etc.



www.abhisheksur.com

Girinarra, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Girinarra on: 1/28/2010 [Member] Starter

Up
0
Down
Thanks for your reply Abhi.


Girinarra, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Girinarra on: 1/28/2010 [Member] Starter

Up
0
Down
Abhi..Do you have any sample code for adding child nodes.I appreciate your help

Girinarra, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sagarp on: 1/29/2010 [Member] Bronze

Up
0
Down
HI friend

use this link

http://www.codeproject.com/KB/scripting/tree_view.aspx


thanks
sagarp

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Girinarra, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response