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

Updating selected node in treeview from RADAJAXRequest

3 Answers 64 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Frank Witte
Top achievements
Rank 1
Frank Witte asked on 09 Oct 2009, 01:09 PM
Hello Telerik Team,

I am having on RAD treeview inside inside RadAjaxPanel to handle treeview(on demand loading with webservice) events on server with callbak.Now I want to do some processing on server in "OnContextMenuItemClick" event after which in certain condition I need to call Javascript function where I can take confirmation from user regarding furthure action , if user say "yes" then again I want to go on server and execute on method.
for second server call I am using RadAjaxManagerProxy  as my master page already have RadAjaxManager. my RadAjaxManagerProxy  setting is as follow

 

 

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server" > 
                        <AjaxSettings> 
                            <telerik:AjaxSetting AjaxControlID="RadTreeView">  
                                <UpdatedControls> 
                                    <telerik:AjaxUpdatedControl ControlID="RadTreeView" /> 
                                    <telerik:AjaxUpdatedControl ControlID="IsShared" /> 
                                </UpdatedControls> 
                            </telerik:AjaxSetting> 
                        </AjaxSettings>      
                    </telerik:RadAjaxManagerProxy> 


I am delegating AJAX request in page load to call my method on server .

 

RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);  
manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(RadAjaxManager_RadAjaxRequest); 


"RadAjaxManager_RadAjaxRequest" method is called and I am doing all my processing inside it. Up till now things are fine but the Issue is I want to update selected treeview node after performing my operation which is somthing not working.

Can you guid me how I can update selected node in treeview after performing my operation from "RadAjaxManager_RadAjaxRequest"?

If possible give me some running example which can give me clear understanding.

Thanks in advance,
Frank

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 12 Oct 2009, 01:44 PM
Hello Frank,

To avoid duplicate posts, we can continue our communication on the subject in the support ticket that you have opened on the matter.

All the best,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ali
Top achievements
Rank 1
answered on 08 Nov 2010, 11:33 AM
Hi, 
I have the same question. In general how should I send the response back to client after some processing in RadAjaxManager_RadAjaxRequest event handler ?
I appreciate fast response.
Ali
0
Pavlina
Telerik team
answered on 08 Nov 2010, 12:04 PM
Hi Ali,

You can handle on client OnResponseEnd event which is fired when a response from the server is processed.

Give it a try and let me know if it helps.

All the best,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
Frank Witte
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Ali
Top achievements
Rank 1
Share this question
or