Gets the settings for the animation played when an item closes.
Namespace: Telerik.WebControls
Assembly: RadMenu (in RadMenu.dll)
Syntax
Example
The following example demonstrates how to set the
CollapseAnimation of RadMenu.
ASPX:
<radM:RadMenu ID="RadMenu1" runat="server">
<CollapseAnimation Type="OutQuint" Duration="300"
/>
<Items>
<radM:RadMenuItem Text="News" >
<Items>
<radM:RadMenuItem Text="CNN" NavigateUrl="http://www.cnn.com"
/>
<radM:RadMenuItem Text="Google News" NavigateUrl="http://news.google.com"
/>
</Items>
</radM:RadMenuItem>
<radM:RadMenuItem Text="Sport" >
<Items>
<radM:RadMenuItem Text="ESPN" NavigateUrl="http://www.espn.com"
/>
<radM:RadMenuItem Text="Eurosport" NavigateUrl="http://www.eurosport.com"
/>
</Items>
</radM:RadMenuItem>
</Items>
</radM:RadMenu>
| C# | Copy Code |
|---|
void Page_Load(object sender, EventArgs e)
{
RadMenu1.CollapseAnimation.Type = AnimationType.Linear;
RadMenu1.CollapseAnimation.Duration = 300;
}
|
| Visual Basic | Copy Code |
|---|
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
RadMenu1.CollapseAnimation.Type = AnimationType.Linear
RadMenu1.CollapseAnimation.Duration = 300
End Sub
|
Remarks
Requirements
Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also