Hi,
the click event is not fired if the button is togleable:
<
body
>
<
div
id
=
"example"
>
<
div
class
=
"demo-section k-content wide"
>
<
div
id
=
"toolbar"
></
div
>
</
div
>
<
script
>
$(document).ready(function() {
$("#toolbar").kendoToolBar({
items: [
{ type: "button", text: "Button",click: onclick },
{ type: "button", text: "Toggle Button", togglable: true, click: onclick },
]});
});
function onclick(e) {
alert(e.target.context.innerText);
}
</
script
>
</
div
>
</
body
>
Is there an other event to catch the state changed?
Peter