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

freeze parent page

1 Answer 45 Views
Window
This is a migrated thread and some comments may be shown as answers.
usr9999
Top achievements
Rank 1
usr9999 asked on 15 Oct 2010, 10:02 PM
Hi,

   I am invoking radwindow from code beind. I would like the freeze the parent window. I don't want the user to do any activity on the parent page when the window is open. How can i do it?

ScriptManager.RegisterStartupScript(Page,

GetType(Page), "RadAlertScript", "Sys.Application.add_load(function(){var t=radopen('test.aspx?', null);t.setSize(1000,700);t.Center();});", True)

Thank you,

 

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 18 Oct 2010, 02:55 PM
Hello usr9999,

The code that you posted looks OK (I assume that you have already set Modal=true which will render the modal background when RadWindow is shown) - do you experience problems with it? The only thing I notice is that you add the code in Sys.Application.Load, but you don't remove it after that - this means that this code will be executed in every postback.
By the way, you can also show the RadWindow by simply setting its VisibleOnPageLoad property to true.

Greetings,
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
usr9999
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or