Initial Behaviour In rad Window

3 posts, 0 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 24 Jun 2009 Link to this post

    hi

    i am using Telerik Q1 2007 version .i have set the initial behavior=maximized .when window open ,its not showing in maximized Mode. when i have set the behavior=maximized. it shows the Maximized button.
    In my project there are  some rad menus.  but problem is when i maximized the window. it cover up the whole area.and its overlapping the menus. is there any restriction to maximized the window. means it will show the window within particular area.

    please give me the solutions ASAP.

    Regards

    rahul


  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 24 Jun 2009 Link to this post

    Hi Rahul Khinvasara,

    I guess you want to restrict the radwindow from showing the maximized view and to set to particular size on maximizing. If so one suggestion would be setting the width and height explicitly when trying to maximize the window. You can try the following clientside code. Attach OnClientCommand event to RadWindow in order to resize the window to required size.

    JavaScript:
     
    <script type="text/ecmascript">  
    function OnClientCommand(sender , args)  
    {  
        if(args.get_commandName()== "Maximize" )  
        {  
            sender.set_width(1250);  
            sender.set_height(800);  
            sender.center();  
            args.set_cancel(true);  
        }  
    }  
    </script> 

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 29 Jun 2009 Link to this post

    Hello Rahul,

    Another, easier option is to set a restriction zone which occupies all teh desired space and set it for the RadWindow as explained below:

    http://demos.telerik.com/aspnet-ajax/window/examples/restrictionzone/defaultcs.aspx


    Greetings,
    Svetlina
    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