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

activating a radwindow from another radwindow

1 Answer 113 Views
Window
This is a migrated thread and some comments may be shown as answers.
mww
Top achievements
Rank 1
mww asked on 19 Jul 2011, 04:59 PM
I have a radwindow that contains a grid.   I want to edit items in the grid inside another radwindow so when a user selects 'edit' or 'add' in the grid, a second radwindow is activated.  Are there any examples of this functionality available ?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 20 Jul 2011, 02:54 PM
Hi Mark,

The approach to solving this scenario depends on the way you use the RadWindow. If you have the RadGrid in its ContentTemplate then you can use this online demo as a basis, since in this case the RadGrid will actually be a part of the main page.

If you are loading an external page in the RadWindow things get a little more complicated since some cross-iframe communication is needed. This is best achieved by declaring a number of functions in the respective pages an calling them in turn to do their job. For example a function in the page with the grid will call a function from the parent page that will open the second RadWindow. A function in the second RadWindow may call a function from the main page that can access the first RadWindow and call a function that rebinds the grid there. The approach is shown in this help article.

I also believe that you may find the following help articles useful:
http://www.telerik.com/help/aspnet-ajax/window-programming-opening-from-within-dialog.html
http://www.telerik.com/help/aspnet-ajax/window-programming-using-radwindow-as-dialog.html
http://www.telerik.com/help/aspnet-ajax/window-programming-using-url-query-string.html
http://www.telerik.com/help/aspnet-ajax/window-programming-using-target.html


Best wishes,
Marin
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Window
Asked by
mww
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or