This is a migrated thread and some comments may be shown as answers.

Error when pasting

1 Answer 75 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Wayne Hiller asked on 22 Oct 2015, 11:21 PM

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();
        }
    });​

1 Answer, 1 is accepted

Sort by
0
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
answered on 23 Oct 2015, 03:10 PM
I figured out the problem, was my code.
Tags
Spreadsheet
Asked by
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Answers by
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Share this question
or