Bind to expand or collapse event programmatically

2 posts, 1 answers
  1. Marco
    Marco avatar
    33 posts
    Member since:
    Jan 2014

    Posted 10 Oct Link to this post

    Hi,

    How can I bind to the expand or collapse event from code? I tried:

     

     $("#collapsibleDiv").on("expand", function () {
                    alert("expand");
                });

     

    without sucess. 

    Kind regards,

     

    Marco

     

     

     

     

     

     

  2. Answer
    Ivan Danchev
    Admin
    Ivan Danchev avatar
    1324 posts

    Posted 11 Oct Link to this post

    Hi Marco,

    Here's a dojo example, which demonstrates how you can bind the Collapsible's expand and collapse events through the widget's bind method.

    Regards,
    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top