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

Reloading Nodes

2 Answers 90 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 02 Oct 2008, 12:28 PM
Hi,
I'm using a TreeView with ExpandMode=ServerSideCallback and it's working fine. However, in certain situations I want to reload from a certain node (and all its children), without having to reload all the other nodes which were already loaded.
A situation for example where I might need it - a popup window was opened, where some data changes can be made. Once it is saved or closed, a client-side function in my page is called, and now I want to reload some data from the server which would update a relevant node (but again, without having to reload the whole tree).
How can I achieve this?

2 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 02 Oct 2008, 04:59 PM
Hi Amit,

You could use RadAjaxManager to initiate an AJAX callback to the server whenever this is necessary. Then use the Response Scripts of the AjaxManager to execute (return) some JavaScript (generated on the server) which will update the TreeView on the client.

Please these topics for more information about the mentioned techniques:
I hope this helps.

Best wishes,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Amit
Top achievements
Rank 1
answered on 05 Oct 2008, 08:31 AM
Hi Simon, thanks for the answer.

Wouldn't I be able to do what you're describing in RadControls for ASP.NET as well? Is there any advantage for the RadControls for ASP.NET AJAX in this aspect?
Tags
TreeView
Asked by
Amit
Top achievements
Rank 1
Answers by
Simon
Telerik team
Amit
Top achievements
Rank 1
Share this question
or