The WebDialogBox now supports ExpandShrink type animation when showing a dialogbox from client codes. The animation is always a nice addition to give smooth and professional impression to your Web application.
The enhancement is made to the ShowDialog method of the WebDialogBox class. The method now introduces two new parameters: enableAnimation and fromElement.
Syntax:
[webDialogBoxInstance].ShowDialog(enableAnimation, fromElement);
enableAnimation is a boolean value indicating whether animation should be performed.
fromElement is a HTML element where the animation should start from.
Sample:
| JavaScript | Copy Code |
divEl = document.getElementById(�??div1�?�); webDialogBox1.ShowDialog(true, divEl); | |
![]() |
The EnableAnimation property of the WebDialogBox need to be set to True from the server side. |
Copy Code