AnimationExtender Animation Using JSON Not Working In ASP.NET
When setting animations for AnimationExtender control using JSON/Javascript, setting the AnimationTarget with the explicit control id such as panel ID does not work when rendered to browser specified by the code below:
The workaround is to get the clientID of the panel control rendered through the browser. Below is the workaround code:
Cheers!
"AnimationTarget":"panelDescription"
//Note: this is just a fragment of the JSON animation //the actual animation might be a little bit specific than this. var animation = "AnimationTarget":"' + '<%= panelDescription.ClientID %>' + '","AnimationChildren"'; //set click behavior animationExtender.set_OnClick(animation);
Comments
Post a Comment