Could you please help me with how I remote can click a button?
I have a button: { id: 'toolbarButton', type: "button", text:'Button', click: function () { console.log('Button clicked!'); } },
I click it like this: $('#toolbarButton').click();
It should be simple but it's not working for me.
1 Answer, 1 is accepted
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!