Scenario: I have an ImageButton.
- On mouseover over the button, want to open a RadWindow, with size of the window fitting the Image. (the content).
- On mouseout, want to close the window.
<
asp:ImageButton ID="ImageButton1" runat="server" ImageUrl='http://xyz.com'
Width="128px" Height="128px" Visible='true'
onmouseover="OpenRadWindow(); return false;" onmouseout="CloseRadWindow()" />
<
telerik:RadWindowManager VisibleStatusbar="false"
ID="RadWindowManager1" runat="server" ShowContentDuringLoad="false" Behavior="Close" AutoSize="true" >
<Windows>
<telerik:RadWindow ID="Popup" runat="server" AutoSize="true" Behavior="Close"/>
</Windows>
</
telerik:RadWindowManager>
function
OpenRadWindow(UrlString) {
radopen(UrlString, "Popup");
}
function CloseRadWindow()
{
// Get hold of "Popup" and close it
}
I am facing 2 issues:
- The AutoSize is not working. The size it's taking is, 300 by 300px.
- The "PopUp" is not the same as what's opened. When radopen is called, it's not the "PopUp" that's made visible, instead a different instance is created.
Could you help with these 2 issues?
Thank you.
}