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

[Solved] How Can I open one RadWindow from Server side

1 Answer 231 Views
Window
This is a migrated thread and some comments may be shown as answers.
Pedro
Top achievements
Rank 1
Pedro asked on 17 Jun 2008, 11:44 AM

I'm generating the RadWindow in RunTime, I can PopUP but when I use
newWindow.OpenerElementId = OpenerButton.ClientID;

But what I need is to open one alert pop when one exception is generated from Server Side.

I need something to put in:

catch (Exception ex)
{
 (Here)
}





My Server Side Code

        RadWindow newWindow = new RadWindow();

        newWindow.NavigateUrl = "http://www.google.com";
        newWindow.Top = Unit.Pixel(22);
        newWindow.Left = Unit.Pixel(0);

        WindowManager.Windows.Add(newWindow);

        //Get a reference to the first window in the list
        RadWindow firstWindow = WindowManager.Windows[0];

        firstWindow.Modal = true;

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 18 Jun 2008, 07:20 AM
Hello Pedro,

I suggest to examine this KB article which demonstrates how to call an alert from server- side.

You can use the same approach to open a RadWindow from the server or you can set its VisibleOnPageLoad property to true, depending on your particular needs and preferences.

Greetings,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Pedro
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or