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

Prompting a User to Save When Leaving

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 2
Marco asked on 24 Nov 2010, 08:21 PM
Hi all,

Is there a control that keep track of things on client- and serverside.
So when a user is leaving that he gets prompted.

I have found an idea for default .NET controls on http://www.4guysfromrolla.com/webtech/100604-1.shtml but to keep track for all the rad controls then I will be busy to change the script.

So before I do that, Ill ask.

Regards,

Marco

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 25 Nov 2010, 12:28 PM
Hello Marco,

The same approach should be applicable for our AJAX controls, too, i.e. wiring either the onbeforeunload or the onunload event of the window object and executing the prompt in the handler. For reference you can examine how this is done on this online demo of RadGrid for ASP.NET AJAX:

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx

Kind regards,
Sebastian
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
General Discussions
Asked by
Marco
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
Share this question
or