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

Problem with System.Windows.Browser.HtmlPage.PopupWindow

1 Answer 123 Views
Window
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 25 May 2009, 01:19 PM

Hi Telerik,

In my Silverlight 2.0 App I have a RadWindow and inside this window I wish to open a popup using
(  System.Windows.Browser.HtmlPage.PopupWindow ).
When i run the code nothing happens. WHen I use the popupwindow code outside the RadWindow control i works just perfect...

Here is my sample code ( C#) :

 
RadWIndow _testwindow = new RadWindow();
_testwindow .Header = "TestWindow";
_testwindow .PinMode = PinMode.NoPin;
_testwindow .WindowStartupLocation = WindowStartupLocation.CenterScreen;
_testwindow .SetValue(StyleManager.ThemeProperty, new VistaTheme());  
_testwindow .MaxWidth = MainGrid.ActualWidth;
_testwindow .MaxHeight = MainGrid.ActualHeight;
_testwindow .Height = MainGrid.ActualHeight;
_testwindow .Width = MainGrid.ActualWidth;
_testwindow .CloseMode = CloseMode.Close;

------------------
 The Content is assigned from a user control and within the usercontrol  i have a button in which i have the following OnClick code:
-----------------

System.Windows.Browser.HtmlPage.PopupWindow(new Uri(http://telerik.com/, UriKind.Absolute), "_blank", new HtmlPopupWindowOptions()
{
  Menubar = false,
  Directories = false,
  Height = 600,
  Width = 750,
  Toolbar = false,
  Status = false,
  Resizeable = true,
  Location = false,
  Top = 150,
  Left = 150,
  Scrollbars = false
 });

Can you help me ??

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 28 May 2009, 10:58 AM
Hello Peter,

I tried your scenario with the latest available version of RadControls for Silverlight - SP2 (2009.1.5.26) and it worked as expected. Please download it and give it a try. If it doesn't work, please send a sample project that shows the problem as we are not able to reproduce it. You can attach a sample project to a new support thread.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
Tags
Window
Asked by
Peter
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or