Trigger toggle event

2 posts, 0 answers
  1. Robert Madrian
    Robert Madrian avatar
    223 posts
    Member since:
    Apr 2003

    Posted 17 Oct 2017 Link to this post


    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?


  2. Ivan Danchev
    Ivan Danchev avatar
    1892 posts

    Posted 19 Oct 2017 Link to this post

    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.

    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.
Back to Top