This is a migrated thread and some comments may be shown as answers.

[Solved] Remove a node in treeview in clientside

5 Answers 115 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Johnny
Top achievements
Rank 2
Johnny asked on 13 Apr 2012, 05:47 AM
Hello everyone!
Can I remove a node in treeview in client-side.

5 Answers, 1 is accepted

Sort by
0
RES
Top achievements
Rank 1
answered on 13 Apr 2012, 11:52 PM
This is how I do it.
$(node).remove();
0
Johnny
Top achievements
Rank 2
answered on 14 Apr 2012, 02:20 AM
Thanks you so much. It worked.
0
Johnny
Top achievements
Rank 2
answered on 14 Apr 2012, 02:47 AM
By the way, how about rename? Sorry because I ask so much
0
RES
Top achievements
Rank 1
answered on 16 Apr 2012, 06:08 PM
I'm assuming you mean updating the text of a node client side correct?

It's funny you ask that because I just posted about this.
http://www.telerik.com/community/forums/aspnet-mvc/treeview/treeview-node-with-image.aspx

The Telerik guys suggest updating a node's text like the following.
$(node).find("> div > .t-in")[0].lastChild.nodeValue = "New text";
0
Johnny
Top achievements
Rank 2
answered on 17 Apr 2012, 09:26 AM
Thanks so much
Tags
TreeView
Asked by
Johnny
Top achievements
Rank 2
Answers by
RES
Top achievements
Rank 1
Johnny
Top achievements
Rank 2
Share this question
or