RADwindow with add another and parent page refresh withour closing

3 posts, 0 answers
  1. Neo
    Neo avatar
    22 posts
    Member since:
    May 2005

    Posted 06 Oct 2010 Link to this post

    Hello all,

    I have RAD window in which i have form where i allow users to enter information, on that form i have 2 buttons "Save" and "Save & Add Another".

    On the "Save & Add Another" i want to refresh the parent screen to refresh and grid and show the added information. I dont want to close the current RADwindow because user can add one more item. but in mean time i want parent screen to be refreshed with latest information thats been added.

    let me know how i can do that.

    Thanks in advance.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 Oct 2010 Link to this post

    Hello Neo,

    Try the following approach to accomplish this.

    Call client method when clicking button and invoke method in main page. Check the help article for getting idea about how to call functions in windows.
    Calling Functions in Windows

    Now from the client function, invoke an ajaxRequest to server to update the control in main page.
    Client-Side API

  3. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 08 Oct 2010 Link to this post

    Hi Neo,

    You can use the same approach as the one in this demo. If you check the code for the EditFormCS(VB) page, you will notice the CloseAndRebind() function that first calls a JavaScript function in the parent page (which makes an ajax request and refreshes the grid) and then close the RadWindow. If you remove the second line from the CloseAndRebind() function, the window will not be closed.

    Sincerely yours,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top