Donate

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:
"AnimationTarget":"panelDescription" 
The workaround is to get the clientID of the panel control rendered through the browser. Below is the workaround code:
   //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);
Cheers!

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

How To Insert Or Add Emojis In Microsoft Teams Status Message

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.