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

Trigger click event

1 Answer 1279 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
Kenneth
Top achievements
Rank 2
Kenneth asked on 27 Oct 2015, 06:14 AM

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.

1 Answer, 1 is accepted

Sort by
0
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 27 Oct 2015, 08:25 PM
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.

Regards,
Pat
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Toolbar
Asked by
Kenneth
Top achievements
Rank 2
Answers by
Patrick | Technical Support Engineer, Senior
Telerik team
Share this question
or