PQGrid provides a powerful autofill feature that allows users to quickly fill data across multiple cells by dragging the fill handle, similar to Excel. What makes PQGrid’s autofill more than just a simple copy-paste is its ability to preserve cell styling, attributes, formats, and even images along with the data values.
formatter property are preserved.1,000 with thousand separators, autofilling it into other cells will maintain the same display format rather than raw numeric values.RichObj, autofill will replicate the image into the target cells.autofillWhen this option is true, grid figures out the pattern or series for numbers, dates and Excel formulas.
When this option is false or is undefined, cells lying in initial selection are simply repeated in the final selection.
fillHandleThe fillHandle option in jQuery Grid enables a user to display a small square at the bottom right corner of a selected range of cells. This square can be dragged horizontally or vertically to extend the selection, repeating or autofilling the contents of the cells in the initial selection to the cells in the final selection.
This option can be set either during initialization or during run time.
This example shows to modify fillHandle option during run time by using dropdown in toolbar.
beforeFillHandleThe beforeFillHandle event in jQuery Grid is triggered just before the fillHandle is displayed at the bottom right corner of a range selection. By accessing the ui argument, which includes rowIndx, rowIndxPage, rowData, column, colIndx, and dataIndx, you can customize the autofill and fillHandle options for specific cells, columns, and rows. This event can be cancelled by returning false, preventing the fillHandle from being displayed.