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

4 posts, 0 answers
  1. Christopher
    Christopher avatar
    39 posts
    Member since:
    Jan 2017

    Posted 05 Apr Link to this post

    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.

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1268 posts

    Posted 06 Apr Link to this post

    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.
  3. Christopher
    Christopher avatar
    39 posts
    Member since:
    Jan 2017

    Posted 06 Apr in reply to Ivan Danchev Link to this post

    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."

  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1268 posts

    Posted 07 Apr Link to this post

    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.
Back to Top