This is a migrated thread and some comments may be shown as answers.

Need event that fires when collapse/expand finished

1 Answer 201 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 18 Jul 2016, 03:24 AM

Hi,

I need to find a way to execute my code (adjust popup size) when panelbar finished to change its size.I currently use expand/collapse methods but they called before animation starts and size start changing. 

 

Thank you.

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 19 Jul 2016, 12:29 PM
Hello Sergey,

The Kendo UI PanelBar does not expose such an event, but you can configure the duration of the collapse/expand animations via the following options:

http://docs.telerik.com/kendo-ui/api/javascript/ui/panelbar#configuration-animation.collapse.duration

http://docs.telerik.com/kendo-ui/api/javascript/ui/panelbar#configuration-animation.expand.duration

... and then wrap the collapse/expand event handlers' logic in a setTimeout(), passing the duration as a delay. I have prepared a simple dojo, illustrating the suggested approach:

http://dojo.telerik.com/iYUWE

I hope this helps.

Regards,
Dimiter Topalov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
PanelBar
Asked by
Sergey
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or