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

RADwindow with add another and parent page refresh withour closing

2 Answers 56 Views
Window
This is a migrated thread and some comments may be shown as answers.
Neo
Top achievements
Rank 1
Neo asked on 06 Oct 2010, 10:01 PM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Oct 2010, 07:35 AM
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


-Shinu.
0
Georgi Tunev
Telerik team
answered on 08 Oct 2010, 12:20 PM
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
Tags
Window
Asked by
Neo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or