Hello,
I can bind a toolbar button click to a view model using the following code:
$(
"#toolbarButton"
).attr(
"data-bind"
,
"click: onButtonClick"
);
var model = kendo.observable({
onButtonClick: function () { alert(“Hello”) }
});
kendo.bind($(
"#Toolbar"
), model);
After disabling the button, it is grayed out but clicking on the button still calls the click handler. The button is disabled using the following code.
var toolbar = $(
"#Toolbar"
).data(
"kendoToolBar"
);<br>toolbar.enable($(
"#toolbarButton"
),
false
);
Any help would be appreciated.
Regards,
Bert