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

[Solved] Refresh Node with Ajax

2 Answers 123 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.
Stefan
Top achievements
Rank 1
Stefan asked on 30 Sep 2011, 10:02 AM

Hello,

We want to refresh a Node over the client side. We are doing that right now with the ajaxRequest method with the DOM item as the parameter. Now lets suppose we have a node without child nodes. I refresh the node with the ajaxrequest call, on the server I find new child elements and return that over json. The treeview diplays now correctly child elements of the refreshed node. But the minus icon is not displayed. How can I achieve that ? A similar problem I have when I refresh a node with a child node which was deleted. After ajaxrequest the minus symbol disappears, but even I return no results in json the child node is still displayed.

2 Answers, 1 is accepted

Sort by
0
Stefan
Top achievements
Rank 1
answered on 06 Oct 2011, 12:59 PM
Hello again,

Anybody an idea, how to fix that behaviour. As the ajaxrequest accepts a paramter and lets me update a certain node of the TreeView, I wonder how I can make that fully work.

Actually the treeview represents a folder structure. With a button on the page I can create a new directory. After a successful creation of the directory I want to refresh the current node. If I refresh the tree with the ajaxrequest function without parameters the whole tree refreshes and I have to recreate all the tree with all the expanded or not expanded nodes. To prevent that I only want to update the part which is necessary.

Thanks
0
Stefan
Top achievements
Rank 1
answered on 11 Oct 2011, 03:20 PM
Tags
TreeView
Asked by
Stefan
Top achievements
Rank 1
Answers by
Stefan
Top achievements
Rank 1
Share this question
or