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

Disable Auto-Fill ?

2 Answers 237 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 11 May 2018, 07:08 PM

Is there a way to disable auto-fill on the spreadsheet?  We don't want our clients to accidentally activate it and over-write data they've already entered in the spreadsheet.

Thanks.

Greg

2 Answers, 1 is accepted

Sort by
0
Accepted
Neli
Telerik team
answered on 15 May 2018, 11:44 AM
Hi Greg,

A possible approach is to prevent the AutoFillCommand from being triggered.
kendo.spreadsheet.Workbook.fn._sheetCommandRequest = function (e) {
           if (e.command === "AutoFillCommand") {
               return;
           }
             this.trigger("commandRequest", e);
       }

Another possibility is to customize the kendo.spreadsheet.AutoFillCommand and clear its implementation.

On the linked Dojo example the first approach is implemented.
I hope this helps.

Regards,
Neli
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Greg
Top achievements
Rank 1
answered on 17 May 2018, 04:45 PM

Neli,

Thank you for the direction on how to override the method.  It worked as you described.

One thing, you should mention that you have to override the method BEFORE the spreadsheet is instantiated for it to take effect.

Thanks again.

Greg

Tags
Spreadsheet
Asked by
Greg
Top achievements
Rank 1
Answers by
Neli
Telerik team
Greg
Top achievements
Rank 1
Share this question
or