Im trying to call a function when I click on my custom toolbar button. I want to see if the function is called by implementing the alert() function inside of it. It doesnt trigger any message tho. Any idea how to check if the function is triggered by clicking on a button beside alerting?
CODE:
....
toolbar: [
{template: '<a class="k-button" onclick="removeLicense()">Ukloni licencu</a>'}
],
...
function removeLicense() {
// window.kendoAlert("hello");
alert("hello");
}
I have prepared a Dojo example which will trigger your alert when the toolbar button is clicked.
Hope this helps.