Unplanned
Last Updated: 05 Mar 2020 13:24 by ADMIN
Anna
Created on: 27 Feb 2020 13:15
Category: Toolbar
Type: Bug Report
0
Toolbar: items.menuButtons.click undocumented

The documentation at  https://docs.telerik.com/kendo-ui/api/javascript/ui/toolbar/configuration/items.menubuttons does not mention the children of a splitButton can have their own click handlers. It's not present in the typings either.

However, this does work: https://dojo.telerik.com/@GaloisGirl/UYeBewEX

Somewhat related is this bug: https://github.com/telerik/kendo-ui-core/issues/4542  . Documenting the behavior would be useful in accurately describing this bug.

 

1 comment
ADMIN
Aleksandar
Posted on: 05 Mar 2020 11:32

Hello Anna,

Thank you for pointing that out. We have a specification for the click event for the Button in the Toolbar, but have missed to document the configuration option for the MenuButton. I have logged an item in our backlog to update the API with details on the configuration for the click event for the MenuButton.

The toolbar click event specifies that the event is fired when the user clicks a command button. The items configuration option provides details on the ToolBar's commands configuration. The ToolBar consists of the ToolBar wrapper, overflow anchor, and command overflow popup main areas. The wrapper holds all commands that can be placed within the available container width. The ones that have no space to fit are moved to the command overflow popup.

Having said that the click event will be fired for all command buttons of the Toolbar except for togglable buttons. In that scenario, the toggle event should be used.

As a small token of gratitude for reporting the missing API reference and typings, I have updated your Telerik points.

Regards,
Aleksandar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.