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

Doing a save and then showing a dialog

1 Answer 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ed Staffin
Top achievements
Rank 1
Ed Staffin asked on 12 Oct 2009, 10:44 AM
Hi,
I'm just looking for the standard idiom for catching an event (a button click for example) on the client, doing an ajax postback to do a save and then displaying a dialog afterward. Basically, in my app, I have a button for running a particular report. However, before running the report I want any changes the user made to be saved. Once saved, I need to display a dialog to collect parameters for the report.
So, the psuedo code on the client would be something like this:

function OnSomeButtonClick()
{
    // make a call to the server to save the current page data
    // upon returning from the previous ajax call, open an RadWindow
}

If someone could kindly help me fill in the blanks I'd sure appreciate it.
Thanks ... Ed

1 Answer, 1 is accepted

Sort by
0
HHalim
Top achievements
Rank 2
answered on 13 Oct 2009, 07:05 PM
For saving through javascript you can call  a webservice through asp.net scriptmanager. Or you can also use radajaxmanager ajaxRequest event:  http://www.telerik.com/help/aspnet-ajax/ajxclientsideapi.html

Then use the radwindow client API to open up a radwindow, take a look at the radwindow demo: http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx
Tags
General Discussions
Asked by
Ed Staffin
Top achievements
Rank 1
Answers by
HHalim
Top achievements
Rank 2
Share this question
or