KaxTreeViewCollapseAnimation Property |
Namespace: Kettic.AspNet.Controls
[PersistenceModeAttribute(PersistenceMode.InnerProperty)] public AnimationSettings CollapseAnimation { get; }
Use the CollapseAnimation property to customize the expand
animation of KaxTreeView. You can specify the
Type and
Duration.
To disable expand animation effects you should set the
Type to
AnimationType.None. To customize the expand animation you can
use the ExpandAnimation property.
ASPX:
<kettic:KaxTreeView ID="KaxTreeView1" runat="server">
<CollapseAnimation Type="OutQuint" Duration="300" />
<Nodes>
<kettic:KaxTreeViewNode Text="News" >
<Nodes>
<kettic:KaxTreeViewNode Text="CNN" NavigateUrl="http://www.cnn.com" />
<kettic:KaxTreeViewNode Text="Google News" NavigateUrl="http://news.google.com" />
</Nodes>
</kettic:KaxTreeViewNode>
<kettic:KaxTreeViewNode Text="Sport" >
<Nodes>
<kettic:KaxTreeViewNode Text="ESPN" NavigateUrl="http://www.espn.com" />
<kettic:KaxTreeViewNode Text="Eurosport" NavigateUrl="http://www.eurosport.com" />
</Nodes>
</kettic:KaxTreeViewNode>
</Nodes>
</kettic:KaxTreeView>