Prevent close

2 posts, 0 answers
  1. Marcus
    Marcus avatar
    30 posts
    Member since:
    Feb 2009

    Posted 10 Jun 2013 Link to this post

    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.
  2. Marin Bratanov
    Marin Bratanov avatar
    3565 posts

    Posted 11 Jun 2013 Link to this post

    Hello Marcus,

    The following article shows how confirmation can be shown before closing a RadWindow: if you want to let the user control this.

    Otherwise - just remove the calls to GetRadWindow().close(); from the dialog page in this demo:

    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.

    Marin Bratanov
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top