How can I trigger alert event when I click on a toolbar kendo Mobile button?

768 Views Asked by At

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");
    }
1

There are 1 best solutions below

0
Sandman On BEST ANSWER

I have prepared a Dojo example which will trigger your alert when the toolbar button is clicked.

Hope this helps.