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

[Solved] How do I

1 Answer 125 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Web
Top achievements
Rank 1
Web asked on 03 Mar 2008, 05:03 PM
I have a Promotheus TreeView implemented as a FileBrowser. I would like, when the user for e.g renames a folder that it would happen as a clientevent so there is no ugly postback, but it also needs to take affect on the serverside. I have the problem when i use the cleint events it does not call the serverside events...Can i call a webservice or can i user server and client events symultaniously?
Thank you.

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 05 Mar 2008, 04:10 PM
Hi kerstin,

I suggest that you do the following:

  • from the client side function call the ajaxRequest method of the RadAjaxManager. It will look like this:
//you can call this javascript function from another js function 
function InitiateAsyncRequest(argument) 
    var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>"); 
    ajaxManager.ajaxRequest(argument); 

  • In the code behind:
public void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e) 
    string arg = e.Argument; 
    // your custom server side code here 

I hope this helps.
Regards,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Web
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or