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

Open radwindow zoom effect

3 Answers 177 Views
Window
This is a migrated thread and some comments may be shown as answers.
Juan Angel
Top achievements
Rank 1
Veteran
Juan Angel asked on 20 Sep 2012, 12:32 PM
I need open an url using zoom animation effect, equal to KendoUI window control.
It's possible ?
How ????


Thank you.

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 21 Sep 2012, 11:24 AM
Hi Juan,

The RadWindow for ASP.NET AJAX offers a different set of animations that you can test by setting the Animation property to one of the possible values (Fade, FlyIn, Resize, Slide). The AnimationDuration property lets you choose how long the effect takes in milliseconds. What I can advise is that you simply test and see which one is most to your liking.


Kind regards,
Marin Bratanov
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
Juan Angel
Top achievements
Rank 1
Veteran
answered on 21 Sep 2012, 12:20 PM
Yes, ok, but I have a problem:

I use this function to open radwindows in diferent sizes:
function OpenWindow(url, title, width, height)
{
     oWnd = window.radopen(url, 'PopUpWindow');
             
     oWnd.set_title(title);
     oWnd.set_visibleStatusbar(false);
     oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Reload);
     oWnd.set_showContentDuringLoad(false);
     oWnd.set_reloadOnShow(true);
 
     oWnd.setSize(width, height);
     oWnd.Center();
     oWnd.set_modal(true);
 
     oWnd.set_animation(Telerik.Web.UI.WindowAnimation.Slide); // don´t runs
     oWnd.set_animationDuration(1000); // don´t runs
      
     return oWnd; 
}

The animation only runs when set animation and animation duration in .aspx:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" DestroyOnClose="true" >
  <Windows>
    <telerik:RadWindow ID="PopUpWindow" runat="server" Animation="FlyIn" AnimationDuration="100" />
 </Windows>
</telerik:RadWindowManager>

I need set dinamically the window size. The animation get final size from aspx and skip size set in javascript function.

Any solution?

0
Marin Bratanov
Telerik team
answered on 25 Sep 2012, 09:56 AM
Hello Juan,

radopen() initiates the creation and showing of the RadWindow with the animation settings already in place. You are attempting to change them after the window is shown. What you would need to do is to get a reference first through the RadWindowManager's API, change the properties, then show it, e.g.:
var oWnd = GetRadWindowManager().getWindowByName("PopUpWindow");
oWnd.set_animation(Telerik.Web.UI.WindowAnimation.Slide); 
oWnd.set_animationDuration(1000); 
//other property changes
oWnd.show();



Regards,
Marin Bratanov
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
Juan Angel
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
Juan Angel
Top achievements
Rank 1
Veteran
Share this question
or