RadWindow : Iniital Behaviors

2 posts, 0 answers
  1. Raja
    Raja avatar
    7 posts
    Member since:
    May 2007

    Posted 11 Jun 2009 Link to this post


    While opening a RadWindiow, I initialize their behavior (say have just Close and Maximize button). But when the window is shown, the position of the buttons are not proper ie buttons are not appearing to the extreme right of the title bar. When I resize the window, they are positioned properly ie buttons are aligned to the right. Following is the code I am using to show the window

            function openPopup() {
                var oWnd = radopen("http://www.google.com", null);
                oWnd.setSize(1000, 1000);
                oWnd.set_initialBehaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close);
                oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Maximize + Telerik.Web.UI.WindowBehaviors.Close);
    I am currently using "Hay" skin (able to see the same behavior with Default skin also). Product version of the assembly is 2009.01.0402.35.



  2. Fiko
    Fiko avatar
    1406 posts

    Posted 15 Jun 2009 Link to this post

    Hello Raja,

    You can easily fix that issue by calling the show() function of the newly opened RadWindow object. Your code should looks like :

    <script type="text/javascript"
        function openWindow() 
            var oWnd = radopen("http://www.google.com"null); 
            oWnd.setSize(1000, 1000); 
            oWnd.set_initialBehaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close); 
            oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Maximize + Telerik.Web.UI.WindowBehaviors.Close); 

    I hope this helps.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top