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

[Solved] Server side events for treeView.commitChanges();

3 Answers 180 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
alex
Top achievements
Rank 1
alex asked on 09 Jan 2008, 06:27 PM
When I call treeView.commitChanges() does anything happen server side? For that matter is anything transmitted at this point back to the server?

For example:
        var treeView = $find("RadTreeView1"); 
treeView.trackChanges();
//add, remove, disable nodes
treeView.commitChanges();

I want the user to be able to add an remove items from a treeview client side. I want these changes to a take affect server side ASAP (ie I don't want to wait for the user to click a button that causes a post back). How do I go about this?

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 10 Jan 2008, 08:18 AM
Hello alex,

There are no server events fired for trackChanges/commitChanges. The changes will be applied on the next postback. If you want them to apply immediately you can consider using Ajax instead client-side remove.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
alex
Top achievements
Rank 1
answered on 11 Jan 2008, 05:09 PM
Is there anyway to get the benefits of the client side delete (isntantaneous), while also getting the benefits of using an ajax postback (the server is notified within some reasonable amount of time, but without requireing a full page postback, that the user has deleted an item).

Merely using ajax will require waiting for the round trip of the request before the item is removed from the treeview.
0
Atanas Korchev
Telerik team
answered on 14 Jan 2008, 09:19 AM
Hello alex,

Maybe you can use RadAjaxManager and call its AjaxRequest method to trigger ajax calls when a node is deleted. You can check our online demo: http://www.telerik.com/demos/aspnet/prometheus/Ajax/Examples/Manager/ClientSideAPI/DefaultCS.aspx

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
alex
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
alex
Top achievements
Rank 1
Share this question
or