Unplanned
Last Updated: 22 Dec 2021 16:39 by ADMIN
Michael D
Created on: 15 Dec 2021 13:57
Category: Toolbar
Type: Feature Request
0
Toolbar subItem clickHandlers do not work when overflown

Assume there is a Toolbar with a splitButton that has a subItem. Both the splitButton and the subItem have clickHandlers configured. As long as the splitButton is not in the toolbar's overflow, everything is working correctly. However, when overflown, clicking on the subItem executes the clickHandler of the splitButton instead of the clickHandler of the subItem.

This behavior can be reproduced in the following DOJO: https://dojo.telerik.com/enanUKan/3. Watch the console output when clicking the splitButton/its subItem.

Two more hints:

  • The bug does not occur when using Kendo UI versions < 2021 R1 SP1 (2021.1.224).
  • The bug does not occur when the splitButton has no clickHandler.

Unfortunately, both options are no viable solution for us. Any suggestions?

2 comments
ADMIN
Dimitar
Posted on: 22 Dec 2021 16:39

Hello,

As a followup, currently it is possible to assign different values to different splitButton's menuButtons and check in the splitButton click handler which menuButton is the one clicked. This is shown on ToolBar Events demo.

Regards,
Dimitar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Dimitar
Posted on: 22 Dec 2021 13:44

Hello,

The change in ToolBat splitButton click handler's behavior is due to fixing the following issue:
ToolBar click event for splitButton's menuButtons does not fire when the splitButton is in overflow

The issue was that when in overflow, the splitButton subitems did not fire the splitButton click handler - Dojo snippet. And after the fix the splitButton's subitems fire the splitButton click handler.

I would like to note that as commented in the issue, support for separate click handlers for splitButton subitems is not documented and although previously working, it was not intended to work.

I am converting this Bug Report to a Feature Request for adding official support for separate click handlers to splitButton subitems.

Regards,
Dimitar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.