Unplanned
Last Updated: 18 Mar 2024 12:16 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.
4 comments
ADMIN
Neli
Posted on: 18 Mar 2024 12:16

Hi Michael,

The bug is not yet scheduled for fixing. I would suggest following the thread, thus you will be notified once its status is updated.

Regards,
Neli
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Michael D
Posted on: 12 Mar 2024 06:56
While doing our regular housekeeping tasks, I have stumbled over this issue again. Are there any news on this?
Michael D
Posted on: 06 Feb 2023 14:41
In the meantime, the missing property is no longer called "target", but "widget". It holds a reference to the splitButton or dropDownList widget that has been opened.
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.