Hi could anyone please guide me in the direction of how I can implement the following:
I am replacing the image of the node by using the following code. but for some reason I cannot get the image changed. The text of the node changes correctly but the image is not working.
I am replacing the image of the node by using the following code. but for some reason I cannot get the image changed. The text of the node changes correctly but the image is not working.
| //when the node is edites |
| function OnNodeEdited(nodetext,imageurl) |
| { |
| var tree = $find("<%= tvwUserWorkout.ClientID %>"); |
| tree.trackChanges(); |
| for (var i = 0; i < tree.get_nodes().get_count(); i++) { |
| var node = tree.get_nodes().getNode(i); |
| node.set_imageUrl(imageurl); |
| node.set_text(nodetext); |
| } |
| tree.commitChanges(); |
| } |
many thanks