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

Bind to expand or collapse event programmatically

1 Answer 191 Views
Collapsible
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Iron
Marco asked on 10 Oct 2017, 12:01 PM

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

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan Danchev
Telerik team
answered on 12 Oct 2017, 04:34 AM
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.
Tags
Collapsible
Asked by
Marco
Top achievements
Rank 1
Iron
Answers by
Ivan Danchev
Telerik team
Share this question
or