This is a migrated thread and some comments may be shown as answers.

Trigger toggle event

1 Answer 191 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Robert Madrian asked on 17 Oct 2017, 10:02 AM

Hello,

I know that it is possible to trigger the click event of a toolbar button like this:

$("#tlbMitglieddokumente > .k-button").click();

 

but how to trigger the toggle Event?

robert

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 19 Oct 2017, 04:25 PM
Hello Robert,

As mentioned in the documentation the click event does not fire for buttons that are configured as togglable (togglable: true). So if you want to fire the toggle event for such buttons you just need to click them with jQuery, as a result only the ToolBar's toggle event will fire. Here's a dojo example.

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Toolbar
Asked by
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Answers by
Ivan Danchev
Telerik team
Share this question
or