Welcome Guest Search | Active Topics | Sign In | Register

Animation Extenders Options
stever
Posted: Monday, March 9, 2009 8:04:45 PM
Rank: Member
Groups: Member

Joined: 3/9/2009
Posts: 25
Hi, I wonder if you can help I am using animation extenders from the Ajax Control kit to make panels expand out and everything works ok but if I make make them a trigger on a callback panel they just stop working after the first time? Is this something to do with them being controlled via javascript? Should I be adding animations to your callback panel at all or is there a better way to get a smooth resizing effect - thats all I really need?

Apart from that I have managed to Ajax a huge web site (600 pages +) in 2 days !!! I am amazed - and performance has gone from 7 - 10 seconds to 2 - 3 - stunned :-)

Steve
eo_support
Posted: Monday, March 9, 2009 8:13:43 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You may want to take a look of ASP.NET UpdatePanel. Most AJAX control extenders are written with UpdatePanel in mind, but not necessary with our CallbackPanel in mind (our CallbackPanel has other advantages over UpdatePanel, but that might be off topic). The basic rule is that a control that rely on JavaScript to initialize must work with the AJAX engine so that it is re-initialized properly after being AJAX updated. Generally the control and the AJAX engine must know how to work with each other in order for this to work. Obviously this rule does not apply when the control does not rely on JavaScript so no re-initialization is needed.

Thanks!
stever
Posted: Tuesday, March 10, 2009 4:57:09 AM
Rank: Member
Groups: Member

Joined: 3/9/2009
Posts: 25
Sorry I didnt make myself clear. I am using the asp.net updatepanel within a usercontrol and am 100% ok with asp.net and Ajax but I wrapped the callback around it and - making the usercontrol a trigger on the callback. This is the point at which it fails after the first time. I am evaluating the product for a large UK corporates dev team so I have taken one of their sites to see how easy it is to ajaxify it and 95% seems to work out the box but they use extenders to perform extra fuctionality. If I take it out of the trigger for your callback panel it works. So am I right in thinking I can either live with the page refresh and not make it a trigger - which doesnt look nice or stick with the standard ajax callback?

Sorry to hassle you but I need to report back to them within the next 24 hours and I dont want to tell them the wrong thing.

Steve
stever
Posted: Tuesday, March 10, 2009 5:50:46 AM
Rank: Member
Groups: Member

Joined: 3/9/2009
Posts: 25
as an appendum to this I may be able to use the dialog control instead it seems to do almost everything they need. Just a few questions I have looked at the properties but cant seem to find answers to these.

1. Is it possible to resize the dialog box to a specific size based on a button click?
2. Once the resize is complete could I fire a javascript function ?

Basically they want to show a panel/window with an image in and if the user clicks a button for the window to expand and display another image. Iadeally they would also like to postback based on a button being clicked within the dialog (not the frame) - is that possible?

If it is possible to do the above then that is everything 100% solved :-)

Steve
eo_support
Posted: Tuesday, March 10, 2009 9:24:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

None is an issue as to the dialog question:

#1: Resize the dialog on a button click

You can do this either on the client side or on the server side. If you want to do it on the server side, you would simply set the dialog control's Width/Height property. If you want to do it on the client side, you would need to call this function:

http://doc.essentialobjects.com/library/1/jsdoc.public.dialog.resize.aspx

#2: Fire a JavaScript function once the resize is complete

Once again you can do it either on the server side or client side. If you are doing it on the server side, you would need to call standard ASP.NET RegisterClientScriptBlock to register a client side JavaScript block to run. If you are doing it on the client side, you would just call whatever JavaScript you'd like to call after you call the dialog's resize function.

#3: Postback based on a button being clicked

A button inside a dialog is no different than a button outside a dialog except that they have different parent control. Server event handling is the same. So just place a button inside a dialog and you would use it the same way as if it were outside of the dialog as to raising and handling server side event.

I am still a bit confused about your UpdatePanel/CallbackPanel issue. I assumed that you were using our CallbackPanel controls, however you stated that you are NOT using our controls and you are using ASP.NET UpdatePanel. In your reply you also stated "If I take it out of the trigger for your callback panel it works". So I am a bit at lost as to which control you are using: ASP.NET UpdatePanel or our (EO) CallbackPanel? Our original suggestion is if you are using our CallbackPanel, you can try to replace our CallbackPanel with ASP.NET UpdatePanel and see if it works for you.

Please feel free to let us know if you have any additional questions.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.