Sunday, March 11, 2012

Combine Animate and Modal dialog functionality

Hi Alex,

Use the AnimationExtender's <ScriptAction Tag to trigger the ModalPopup Being Shown using its SHOW function.

Take a look at the Documentation for the same here

http://ajax.asp.net/ajaxtoolkit/Walkthrough/AnimationReference.aspx#ScriptAction


Thank you for your answer Phanatic!

As I got you - you suggest to make all needed animations with the panel and after that run modal extender with ScriptAction.

This sounds reasonable, I'm triing it.

Just problems I met ModalExtender catches hard control assigned to it with PopupControlID.

Control that is assigned to PopupExtender not appear at all.

I mean seems AnimationExtender can't work with same control together with PopupExtender .

Another problem/question - make AnimationExtender to put panel just same place as it will appear with
PopupExtender.

Thanks again,
Alex


Hi,

Can you please drop me the sample you are trying at Phani_Rajyn@.yahoo.co.in ?

I will look into it to see what we are missing


Please use this markup for the Animation Extender .

1) Assign a behavior ID for the ModalPopupExtender Control using

BehaviorID

="modalBehavior"

2) Change the Animation Extender to have this Markup .

<ajaxtoolkit:AnimationExtenderID="MyExtender"runat="server"TargetControlID="someButton1">

<Animations><OnClick><Sequence><ScriptActionScript="$find('modalBehavior').show()"/><FadeInAnimationTarget="CreateChartDialog"Duration="0.2"/></Sequence></OnClick></Animations></ajaxtoolkit:AnimationExtender>

I just tested this and it works like a charm.


Great thanks!

really magic - you said correctly it is charming!!!

Alex


Can you post the complete code for this including the modal?

No comments:

Post a Comment