Unplanned
Last Updated: 06 Dec 2021 10:03 by ADMIN
Michael D
Created on: 29 Nov 2021 10:40
Category: Toolbar
Type: Bug Report
0
kendo.ui.ToolBarOpenEvent

The Typescript definitions for Kendo UI define the kendo.ui.ToolBarOpenEvent as follows:

interface ToolBarEvent {
        sender: ToolBar;
        preventDefault: Function;
        isDefaultPrevented(): boolean;
}

interface ToolBarOpenEvent extends ToolBarEvent {
        SplitButton?: JQuery | undefined;
}

The event is also documented that way in https://docs.telerik.com/kendo-ui/api/javascript/ui/toolbar/events/open. However, the corrersponding method in kendo-toolbar.js:446-453 does the following:

open: function (e) {
    var isDefaultPrevented = that.toolbar.trigger(OPEN, { target: element });
    if (isDefaultPrevented) {
        e.preventDefault();
        return;
    }
    that.adjustPopupWidth(e.sender);
},
Therefore, the SplitButton property is never set, instead, target can be used.
1 comment
ADMIN
Neli
Posted on: 06 Dec 2021 10:03

Hi Michael,

Thank you for reporting this issue. I have also logged an issue in our public repository and you can track the progress on the item also via the issue lined below:

- https://github.com/telerik/kendo-ui-core/issues/6651

As a token of gratitude for reporting this issue, I have updated your Telerik points.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.