Trying to paste in some cells copied from Excel and get "TypeError: this.dialog(...) is undefined" error.
See ERROR HERE below.
var SpreadsheetDialog = kendo.spreadsheet.SpreadsheetDialog = kendo.Observable.extend({
init: function(options) {
kendo.Observable.fn.init.call(this, options);
this.options = $.extend(true, {}, this.options, options);
},
dialog: function() {
if (!this._dialog) {
this._dialog = $("<div class='k-spreadsheet-window k-action-window' />")
.addClass(this.options.className || "")
.append(this.options.template)
.appendTo(document.body)
.kendoWindow({
scrollable: false,
resizable: false,
maximizable: false,
modal: true,
visible: false,
width: this.options.width || 320,
title: this.options.title,
open: function() {
this.center();
},
deactivate: function() {
this._dialog.destroy();
this._dialog = null;
}.bind(this)
})
.data("kendoWindow");
}
return this._dialog;
},
destroy: function() {
if (this._dialog) {
this._dialog.destroy();
this._dialog = null;
}
},
open: function() {
>>>> ERROR HERE >>>> this.dialog().open();
},
apply: function() {
this.close();
},
close: function() {
this.dialog().close();
}
});