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

Update Treeview using ajaxRequest

1 Answer 48 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Luca B
Top achievements
Rank 1
Luca B asked on 03 Jan 2012, 06:18 PM
Hi all, I have an usercontrol that contains a treeview, a toolbar and a radwindow.
My goal is simple: when the user clicks on a toolbar button, I want to prompt the user for a node name (using the radwindow), and then begin an ajaxRequest that should add the node to the treeview.
I am not able to get the last step to work.
When I invoke ajaxMan.ajaxRequest from client, the request is correctly handled by the server and the node is added to the treeview, BUT it doesn't show up on the client.
I also tried to wrap the treeview in a RadAjaxPanel, but then I am not able to refresh it server-side.
Any ideas?
Thanks!

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 03 Jan 2012, 09:48 PM
Luca:

I'd suggest that you take a look at the Refresh nodes added on demand documentation page for RadTreeView. It should provide you with the ability to refresh the display on the client after the server-side modification occurs.

Hope this helps!
Tags
Ajax
Asked by
Luca B
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or