JavaScript Data Grid Autofill values

Overview

Autofill is a feature that enables you to copy the contents of a cell to another cell or range of cells within the grid.

Autofill in all directions

Using the tiny square known as the 'fill handle' in the corner of the selected cell, you can drag it (drag-down) to repeat the values from the cell. Double click the fill handle in cell B4 where the value is 30 to fill the selection down to the last value in neighboring column, just like it would in Excel or Google Sheets.

    Autofill in a vertical direction only and creating new rows

    In this configuration, the fill handle is restricted to move only vertically. New rows are automatically added to the bottom of the table by changing autoInsertRow to true.