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

Animations not working

1 Answer 89 Views
Window
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 18 Oct 2007, 04:20 PM
Hi, I am trying to use animations on the windows and they are not working. Once I click my link the window shows centered on the page, with no animation, regardless of the one I choose. Any help would be appreciated. Thanks.  I am using the following:

function ShowDetailsForm(id)

{

var win = window.radopen("AbstractDetail.aspx?AbstractID=" + id, null);

return false;

}



<telerik:RadWindowManager ID="rwmMain" runat="server">

<Windows>

<telerik:RadWindow ID="AbstractDialog" Title="Abstract" runat="server" Modal="True" Animation="Resize" OpenerElementID="rgMain" ShowContentDuringLoad="true">

</telerik:RadWindow>

</Windows>

</telerik:RadWindowManager>

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 22 Oct 2007, 01:01 PM
Hi Darren,

From what you have posted, I see that you have set an OpenerElementID for the RadWindow, however you are opening a (different) RadWindow via Javascript. In your code you don't provide the name of the RadWindow and that is why the animations are not present - you are opening a new RadWindow with default settings.

Please check the code below and use the most appropriate approach for your case.

<asp:ScriptManager ID="ScriptManager1" runat="server">  
</asp:ScriptManager> 
 
<script type="text/javascript">  
function ShowDetailsForm(id)   
    {   
        var win = window.radopen("http://www.google.com", null);   
        return false; }  
          
    function openAniWin()  
        {  
            var oWnd = $find("AbstractDialog");  
            oWnd.show();  
        }  
</script> 
 
<telerik:RadWindowManager ID="rwmMain" runat="server">  
    <Windows> 
        <telerik:RadWindow NavigateUrl="http://www.google.com" ID="AbstractDialog" Title="Abstract" 
            runat="server" Modal="True" Animation="Resize" OpenerElementID="rgMain" ShowContentDuringLoad="true">  
        </telerik:RadWindow> 
    </Windows> 
</telerik:RadWindowManager> 
<button id="rgMain">  
    Opener Element</button> 
<br /> 
<button id="Button1" onclick="openAniWin(); return false;">  
    Open via Javascript</button> 




Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Darren
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or