Feb 24, 2010, 11:36 AM
[CLOSED] .swf animation does not work calling a method after tree panel node is clicked
Hi,
I need to show an .swf animation after a tree node is clicked, I have the same code when the page is loaded.
When the page is loaded it works fine, but it does not work when the tree node is clicked. Could you please tell me what else do I need to do?
I need to show an .swf animation after a tree node is clicked, I have the same code when the page is loaded.
When the page is loaded it works fine, but it does not work when the tree node is clicked. Could you please tell me what else do I need to do?
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
portalAnimation.Url = this.ResolveUrl(@".\Portals\EN\Portal1.swf");
}
}
// After tree node is clicked I call this method
protected void TreePanelPortalsNodeClick(object sender, DirectEventArgs e)
{
portalAnimation.Url = this.ResolveUrl(@".\Portals\EN\Portal1.swf");
}
<ext:TreePanel
ID="TreePanelPortals"
runat="server"
Padding="5"
Animate="true"
EnableDD="true"
ContainerScroll="true"
DDGroup="organizerDD"
RootVisible="false"
Width="200"
AutoScroll="true">
<DirectEvents>
<Click OnEvent="TreePanelPortalsNodeClick" />
</DirectEvents>
</ext:TreePanel>