Trigger click event

2 posts, 0 answers
  1. Kenneth
    Kenneth avatar
    27 posts
    Member since:
    Nov 2010

    Posted 27 Oct 2015 Link to this post

    Could you please help me with how I remote can click a button?

    I have a button: { id: 'toolbar​Button', type: "button", text:'Button', click: function () { console.log(​'​Button clicked!'); } },

    I click it like this: $('#toolbar​Button').click();

    It should be simple but it's not working for me.

  2. Patrick
    Patrick avatar
    151 posts

    Posted 27 Oct 2015 Link to this post

    Hi Kenneth,

    Take a look at this demo illustrating how to remote click a button in a toolbar.  The toolbar  "buttons" are actually anchors, so I created a template with a button.  It remotely clicks the "Command" button in the ready event and sends a message into the console.  

    Otherwise, the click event won't work with the anchors in Kendo.  

    Hopefully, that helps clear things.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top