When the background tool is displayed in the overflow menu of the toolbar and the user tries to change the background color or text color an error: e[this._property] is not a function
is thrown.
An error e[this._property] is not a function
is thrown and the background color is not changed.
There should be no error in the console and the color should be changed accordingly.
Hello,
I am pasting below a possible workaround to the issue:
kendo.spreadsheet.ToolBar.fn._click = function(e){
var target = e.target,
property = target.data("property") == undefined ? $(target).find('.k-menu-link-text').text().toLowerCase() : target.data("property"),
value = e.value || target.data("value") || e.target.val(),
commandType = target.data("command"),
dialog = target.data("dialog"),
options = target.data("options") || {};
if (value === "popup") {
// Special case to open custom format dialog from option of the format DDL
dialog = target.data("popup");
}
options.property = property || null;
options.value = value || null;
if (dialog) {
this.dialog({
name: dialog,
options: options
});
return;
}
if (!commandType) {
return;
}
var args = {
command: commandType,
options: options
};
if (typeof args.options.value === "boolean") {
args.options.value = e.checked ? true : null;
}
this.action(args);
}
A dojo example demonstrating the approach - https://dojo.telerik.com/@NeliK/IHaRIvoy
Regards,
Neli
Progress Telerik