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

toggle, expand, and collapse functions do not trigger corresponding events.

3 Answers 132 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 2
Christopher asked on 05 Apr 2017, 05:11 AM

Noticed that when you call either the toggle, expand, or collapse function calls on a splitter, the corresponding event never fires. 

Here's a demo of the behavior:

http://dojo.telerik.com/asOJA

You can see in your console when you double click the bar, the event fires. But when you click the button which makes a toggle call, no event is fired.

3 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 06 Apr 2017, 06:26 AM
Hello Christopher,

Indeed the expand and collapse events are not triggered when calling the Splitter's toggle method. This behavior is by design and is mentioned in the API documentation.

Regards,
Ivan Danchev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Christopher
Top achievements
Rank 2
answered on 06 Apr 2017, 06:41 AM

So, it's ok to have an un-intuitive, half-baked implementation because that half-baked implementation is "documented"... Gotcha.

You may want to update the documentation for the events then, the event collapse (and expand) should change from:

"Triggered when a pane of a Splitter is collapsed."

to

"Triggered when a pane of a Splitter is collapsed, except when you call collapse for some reason."

0
Ivan Danchev
Telerik team
answered on 07 Apr 2017, 02:13 PM
Hello Christopher,

Thank you for the feedback. We will consider adding a note as the one added for other events (the ComboBox' select event for instance), which similarly to the Splitter's expand and collapse events are not triggered by calls to API methods.

Regards,
Ivan Danchev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Splitter
Asked by
Christopher
Top achievements
Rank 2
Answers by
Ivan Danchev
Telerik team
Christopher
Top achievements
Rank 2
Share this question
or