Need event that fires when collapse/expand finished

2 posts, 0 answers
  1. Sergey
    Sergey avatar
    10 posts
    Member since:
    Apr 2016

    Posted 17 Jul Link to this post

    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.

  2. Dimiter Topalov
    Admin
    Dimiter Topalov avatar
    356 posts

    Posted 19 Jul Link to this post

    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.
     
  3. Kendo UI is VS 2017 Ready
Back to Top