It would be nice if you could add a disabled state for k-button. That way, we don't have to hide the buttons from the users to force them to enter some information before clicking a button.
I will forward your suggestion to the product team, looks quite reasonable. By the way, is applying the k-state-disabled style to disabled buttons dynamically applicable for your scenarios? Here's some more info about the css styles used by the Kendo UI widgets: http://docs.kendoui.com/getting-started/web/appearance-styling Update: Since this functionality produces the desired outcome for buttons and there are no objections, I am closing this entry.
You can wrap the button nicely in your own. I've done this very thing with images making a nice little api for image buttons: $.fn.p1pCommandButton = function (clickHandler) { var btn = {}; var isEnabled = true; var self = this; btn.disable = function () { isEnabled = false; $(self).addClass('k-state-disabled'); } btn.enable = function () { isEnabled = true; $(self).removeClass('k-state-disabled'); } $(this).click(function () { if (isEnabled) { clickHandler(); } }); $(this).data('p1pCommandButton', btn); return btn; };
Is it possible to delete a row in Kendo grid ? I hardly found any example :(
I second David's comment regarding all widgets.
Meaningful suggestion, will take it into account for future versions.
It would be nice if a disable() and enable() method were available to all widgets