Window won't maximize

2 posts, 1 answers
  1. Dave Miller
    Dave Miller avatar
    64 posts
    Member since:
    Oct 2004

    Posted 24 Jan 2008 Link to this post

    Although I can get all other client side functions to work, SetSize, SetModal, etc it will not maximize.

    see code below:
    (varPage == "5")

    <a href="#" class="MediaLink"  onclick="OpenRw('5', '1'); return false;"><img width="175" height="104" alt="" src="test_img/Impulse_360.png" border="0" /></a>

    <telerik:RadWindowManager ID="RadWindowManager1" Skin="Default2006"  Behavior="Close"  runat="server" >
      <Windows>
         <telerik:RadWindow ID="pgRadWindow" Height="370px" width="395px" runat="server" VisibleStatusbar="false" ShowContentDuringLoad="false" ></telerik:RadWindow>
      </Windows>
    </telerik:RadWindowManager>

    function OpenRw(varPage, varID) {

    var oManager = GetRadWindowManager();
    var oWnd = oManager.GetWindowByName("pgRadWindow");
    if (!oWnd) return;

    if (varPage == "1"){
     var newUrl = "Slideshows.aspx?id="+varID ;
     oWnd.SetSize(565,545);
     }
     
    if (varPage == "2"){
     var newUrl = "Videos.aspx?id="+varID ;
     oWnd.SetSize(389,358);
     }
     
    if (varPage == "3"){
     var newUrl = "Slideshows.aspx?id="+varID ;
     oWnd.SetSize(354,390);
     
     }
     
    if (varPage == "4"){
     var newUrl = "ProductBrowser.aspx?id="+varID ;
     oWnd.SetSize(550,300);
     }
     
    if (varPage == "5"){
     var newUrl = "360promo.html" ;
    // oWnd.setSize(875,550);
     oWnd.SetModal(true);
     oWnd.Maximize();
     }
     
    if (varPage == "6"){
     var newUrl = "PageBrowser.aspx?id="+varID ;
     oWnd.SetSize(650,400);
     }
      
     oWnd.ReloadOnShow
     oWnd.SetUrl(newUrl);
     oWnd.Show();
    }


  2. Answer
    George
    Admin
    George avatar
    298 posts

    Posted 25 Jan 2008 Link to this post

    Hello Dave MIller,

    I have refined your code so that to achieve the desired functionality. Please note that if you want to maximize the window it should be enabled the maximize behavior to it. You can see the attached project.

    Best wishes,
    George
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top