Problem with System.Windows.Browser.HtmlPage.PopupWindow

2 posts, 0 answers
  1. Peter
    Peter avatar
    1 posts
    Member since:
    Jun 2012

    Posted 25 May 2009 Link to this post

    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(, 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 ??

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 28 May 2009 Link to this post

    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.

    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.
Back to Top