UpdatePanelAnimationExtender and nested UpdatePanel

C

Clodoaldo

I'm trying to make animations work with nested UpdatePanels.

The outermost UpdatePanel is correctly FadedOut and FadedIn but the
inner UpdatePanel is only FadedOut, it is not FadedIn OnUpdated:

<div>

<asp:UpdatePanel ID="UpdatePanel1" runat="server"
UpdateMode="conditional">
<ContentTemplate>
<asp:DropDownList ID="DropDownList1" runat="server"
AutoPostBack="true"
OnSelectedIndexChanged="DropDownList_SelectedIndexChanged">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
</asp:DropDownList>

<asp:UpdatePanel ID="UpdatePanel2" runat="server"
UpdateMode="conditional">
<ContentTemplate>
<asp:DropDownList ID="DropDownList2" runat="server"
AutoPostBack="true"

OnSelectedIndexChanged="DropDownList_SelectedIndexChanged">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>

</ContentTemplate>
</asp:UpdatePanel>

<ajaxToolkit:UpdatePanelAnimationExtender
ID="UpdatePanelAnimationExtender1"
TargetControlID="UpdatePanel1" runat="server">
<Animations>
<OnUpdating><FadeOut duration="0.2" fps="20"
minimumOpacity="0.35"></FadeOut></OnUpdating>
<OnUpdated><FadeIn duration="0.2" fps="20"></FadeIn></OnUpdated>
</Animations>
</ajaxToolkit:UpdatePanelAnimationExtender>

</div>
</form>


protected void DropDownList_SelectedIndexChanged(object sender,
EventArgs e)
{
System.Threading.Thread.Sleep(1000);
}


What am I missing?

Regards, Clodoaldo Pinto Neto
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,701
Latest member
XavierQ83

Latest Threads

Top