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

Prevent close

1 Answer 69 Views
Window
This is a migrated thread and some comments may be shown as answers.
Marcus
Top achievements
Rank 1
Marcus asked on 11 Jun 2013, 01:44 AM
Hi All,
sorry if this has been asked before (yes, I did search the forums).
I have a page with Master-Detail functionality. The details grid is in a RadWindow ModalPopup which also has functionality for adding records.
When a record is added the modal closes. What I'd like to have is the window to stay open and the grid to refresh. I'm pretty sure this is something simple, but I can't seem to figure it out.

Thx in advance for help and/or pointers.
Rgds - M.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 11 Jun 2013, 01:14 PM
Hello Marcus,

The following article shows how confirmation can be shown before closing a RadWindow: http://www.telerik.com/help/aspnet-ajax/window-application-confirm-closing.html if you want to let the user control this.

Otherwise - just remove the calls to GetRadWindow().close(); from the dialog page in this demo: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window.

You can download the demos from your account and examine and/or modify their code freely. The refreshGrid() function triggers the grid refresh while the close() method of the RadWindow is what closes the popup. If you do not want to close it in all cases just call it when you want to.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Window
Asked by
Marcus
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or