This is a migrated thread and some comments may be shown as answers.

making RadWindow Active

3 Answers 126 Views
Window
This is a migrated thread and some comments may be shown as answers.
Venkatakrishna
Top achievements
Rank 1
Venkatakrishna asked on 11 Jan 2012, 02:12 PM
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

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 12 Jan 2012, 01:07 PM
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
0
Venkatakrishna
Top achievements
Rank 1
answered on 13 Jan 2012, 05:54 AM
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
0
Marin Bratanov
Telerik team
answered on 13 Jan 2012, 05:30 PM
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
Tags
Window
Asked by
Venkatakrishna
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Venkatakrishna
Top achievements
Rank 1
Share this question
or