making RadWindow Active

4 posts, 0 answers
  1. Venkatakrishna
    Venkatakrishna avatar
    22 posts
    Member since:
    Jul 2010

    Posted 11 Jan 2012 Link to this post

    Hi,

    In my application, we are using multiple rad windows and they have maximize and minimize buttons. if you click on minimize button of the inactive window, nothing is happening, we need to activate the window and click the minimize button and user will not like this, can you help us to activate the window on mouseover event ?

    or

    it will be great if it is possible to make all the window active.

    Thanks
    Venkat
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4529 posts

    Posted 12 Jan 2012 Link to this post

    Hello Venkat,

    You can use jQuery to attach an onmouseover event handler for the popup element of the RadWindow that will call the setActive(true) method from its Client-side API. In the example below I am using the id of the RadWindow and I concatenate it with the static prefix its popup element gets:
    <telerik:RadWindowManager runat="server" ID="rwm1">
    </telerik:RadWindowManager>
    <asp:Button ID="Button1" Text="open a RadWindow" OnClientClick="openRadWind(); return false;" runat="server" />

    function openRadWind()
    {
        var oWnd = radopen("http://www.bing.com/", null);
        var oWndId = oWnd.get_id();
        $telerik.$("#" + "RadWindowWrapper_" + oWndId).mouseover(function () { oWnd.setActive(true); });
    }


    Regards,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. Venkatakrishna
    Venkatakrishna avatar
    22 posts
    Member since:
    Jul 2010

    Posted 12 Jan 2012 Link to this post

    Thank you so much for your quick reply. Let us try and give you a feedback later today.

    I have a another request and this is regarding minimizing window.

    in our application, we have minimized zone and when you click the minimize button ( [ - ] ), window gets minized in the  zone and it works well. the issue is, when we do programatically  by calling wnd.minimize() method, it does not get minimized in the zone and gets minimized in the actual window position. it will great if you can help us in this.

    Thank you so much again !

    Venkat
  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4529 posts

    Posted 13 Jan 2012 Link to this post

    Hi Venkat,

    This seems to be working fine with me: http://screencast.com/t/5pi1vaXxiSj. I am also attaching here the test page I used for this recording.

    Which version of the controls  are you using? On my end the latest (Q3 2011 SP1 or 2011.3.1305) works correctly, so I suggest that you upgrade to it and test again.


    All the best,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top