Skip to content

Upgrading from 1.1.0 to 1.2.0 ​

1.2.0 is compatible with 1.1.0. No option or method was removed or renamed, and most things behave as before if you do not use the new options. A few defaults do change, though. Check only the rows below that apply to your app. The full list of changes is in the Release notes. If you are moving from 1.2.0 to 1.3.0, read only the short note below.

What to check ​

What changedWho is affectedTo get the old behavior
In Excel export, date and time columns become Excel date cells instead of text cellsApps that export columns with kind: 'date', 'time' or 'datetime' to .xlsxdateAsText: true
removeRows and updateRows called from code become one undo stepApps that call these methods and use Ctrl+ZundoLimit: 0, transact, clearHistory()
Delete and Backspace clear a date or time cellApps with editable date or time columnsNo option. Set the column to editable: false
Actions that write many cells (paste, cut, clearing a range) no longer emit editStarted per cellCode that used editStarted to notice a pasteListen to cellsPasted or editCommitted
The bundle is about 12% bigger (gzip)Apps that use maxgrid.min.jsThe modular bundles
TypeScript types got wider (ColumnKind, locale)Code that switches over every column kind or narrows locale to 'ko' | 'en'Add the cases, or use LocaleCode
The accessible name of editors and the calendar languageApps that check screen reader text, or whose page lang differs from the grid localeMake locale match the page language
Sheet name and number format checks in Excel export are stricterApps that use sheetName or numberFormatsSee "Export" below

Excel date cells ​

In 1.1.0 a YYYY-MM-DD string was a text cell in Excel. From 1.2.0 it is a date cell, so Excel can sort and filter it as a date. If you must keep text exactly as before (another program reads that column as text, for example), one option turns it back.

ts
import { downloadXlsx } from '@maxgrid/export';

await downloadXlsx('orders.xlsx', api, { dateAsText: true });

Values that cannot be read, text decorated by formatValue, and dates before 1 March 1900 still go out as text, as before. The full rules are in Export.

Undo history ​

From 1.2.0, removeRows and updateRows called from code are undone by Ctrl+Z too (one call is one step). If your app must not let the user undo what the code just did, pick one of three ways. The samples below assume the columns and rows you built earlier and the api the grid returned.

ts
// 1) Turn the history off completely (undo of cell edits goes too)
const options = { columns, rows, rowKey: 'id', undoLimit: 0 };

// 2) Keep just this change out of the history: transact, setRows and addRows are not steps
api.transact({ remove: [3] });

// 3) Clear the history after the change (earlier cell edits are forgotten too)
api.removeRows([3]);
api.clearHistory();

An updateRows where no value changed creates no step and sends no rowsChanged (1.1.0 sent rowsChanged even for equal values). The details are in Cell editing.

Clearing date and time cells ​

Keys that did nothing in 1.1.0 clear a value in 1.2.0. In an editable cell of a date, time or datetime column (when no cell is being edited), Delete or Backspace clears the value to null.

  • With a cell range selected, every date and time cell in the range is cleared together, and a cell covered by overlapping ranges is cleared once. Undo (Ctrl+Z) is one step, however many cells were cleared.
  • Read-only cells and text or number cells are untouched.
  • A cell that does not accept an empty value (validation: { required: true }) keeps its value, and the cell is marked as rejected (a border and a "!", plus aria-invalid). Color is not the only cue: the reason is in the cell's title and is announced politely to screen readers. The validationFailed event arrives too. In a range, only that cell is skipped. Only user actions (keyboard, paste, cut) mark the cell; when your app calls pasteCells, nothing is marked (the event and the return value stay the same).
  • There is no option for just this key. Set a column that must not be cleared to editable: false, or make it required. The details are in Cell editing.

Bundle size and new files ​

maxgrid.min.js grew from about 127.7 KB to 142.9 KB gzip, about 12% (brotli 107.7 KB to 120.0 KB, maxgrid.css 9.1 KB to 10.2 KB). The date and time pickers are the biggest part and language packs come next. If you do not use some features, take only what you need with the modular bundles in Choosing features.

Two new optional files are not part of maxgrid.min.js, so only the apps that use them download them.

FileWhat it holdsSize (gzip)
maxgrid.themes.min.jsMaxGrid.themes: createTheme, applyTheme, checkThemeabout 4.4 KB
maxgrid.picker.min.jsMaxGrid.picker: date and time pickers to use without a gridabout 24 KB

Load both after maxgrid.min.js. In the wrong order they throw an English error.

Types and language ​

  • ColumnKind gained 'time' and 'datetime'. Code that switches over every column kind (a never check) needs the two cases to compile.
  • GridOptions['locale'] is LocaleCode, not 'ko' | 'en'. It accepts the code of a registered language pack ('ja' and so on), and an unknown code shows English. If a variable narrows this value to 'ko' | 'en', change its type to LocaleCode.
  • The language pack registry is separate for each bundle. If you create the grid with the maxgrid package, import registerLocale from maxgrid (Languages and language packs).
  • registerLocale stores the pack code in canonical form ('ZH-hant' becomes 'zh-Hant') and throws for a code that is not a valid language tag. 1.1.0 had no registerLocale, so this affects only apps that use it now.
  • A column with validation.custom is validated cell by cell in range writes too (paste, cut, Delete). Checks that look at other rows (such as "no duplicates") now work inside one paste; the cost is that pasting a very large range (tens of thousands of cells) into such a column can be slow.

Accessible name of editors ​

The aria-label of a cell editor input is the column title, not the column id. The calendar language of the date editor follows the grid locale, not the page lang. If the two differ in your app, make locale match the page language.

Export ​

  • The first sheet name still becomes Sheet1 when empty and is cut at 31 characters. Also, History (reserved by Excel) throws TypeError, and an apostrophe or space left at the end after the cut is tidied.
  • A number format code (numberFormats) must close its quotes and brackets and have at most 4 sections, and at most 200 different codes can be used. In a column with a format, a value that is not a number goes out as its display text. An id that matches no column is reported once.
  • A date before 1 March 1900, whether a Date or a string, goes out as the same YYYY-MM-DD text, and you are told once per export (through onError when given).
  • A sheet whose XML goes past about 200 MB stops with a RangeError. Export such sizes as CSV.

Events and values you read ​

  • Actions that write a range (paste, cut, clearing a range) do not open an editor per cell, so no editStarted arrives. editCommitted still arrives per cell (3,000 times for 3,000 cells), rowsChanged once, and undo is one step. In return, thousands of cells take tens of milliseconds. A paste can also be noticed through the single cellsPasted event.
  • historyChanged gained the optional fields rowKeys and hiddenCount (how many rows the filter hides). The existing fields are unchanged.
  • The total rows that getDisplayRow returns gained rowId (when you use summary.rows).
  • Locked rows (isRowSelectable), several footer rows, sorting by group total and the pager styles are new options, so nothing changes unless you use them.

Upgrading from 1.2.0 to 1.3.0 ​

Nothing breaks. 1.3.0 only adds Japanese and Simplified Chinese language packs as new optional packages (@maxgrid/locale-ja, @maxgrid/locale-zh-cn) and optional files (maxgrid.locale.ja.min.js, maxgrid.locale.zh-CN.min.js). If you do not use them there is no code to change, and maxgrid.min.js is not different. Both packs are still a preview (Languages and language packs).

Check one thing. A license key compares the build date of the file you use with the key's update window. If the key's date is before the 1.3.0 build date, the 1.3.0 files show the evaluation mark. Pin a version or renew the key (Update window).

Upgrading from 1.3.0 to 1.3.2 ​

Nothing breaks. 1.3.1 is a bug and display fix release, and 1.3.2 adds a Simplified Chinese PDF font. There are no new option names.

  • License key: if the build date of the file you use is later than the key's update window, the evaluation mark appears. 1.3.1 came out on 2026-11-12 and 1.3.2 on 2026-11-13. For a key with an earlier window, pin a version such as maxgrid@1.3.0 or renew the key (update window).
  • Evaluation band: in evaluation mode the band takes its own space (25px high) right under the grid. It no longer covers data, but a screen where the grid height was set exactly grows by 25px.
  • Summary rows: a screen that used client paging together with two or more summary.rows now shows every configured row on every page (1.2.0 to 1.3.0 showed only one).
  • PDF fonts: font takes one font or an array of fonts. Code that passes one font is unchanged and the PDF is byte-identical. For Simplified Chinese, install @maxgrid/export-font-sc and chain font: [koreanFont, simplifiedChineseFont] (Simplified Chinese and other characters missing from the font). Invisible formatting characters between letters (ZWJ and the like) no longer become ?.
  • Types: PdfWarning.suggest can also be '@maxgrid/export-font-sc'. If you narrowed suggest to '@maxgrid/export-font-ko', widen the type.
  • Font file location: with a script tag, the font loader's files are not on the docs host CDN. Put them in a fonts/ folder next to the script, or leave them out and they come from jsDelivr (npm).

Upgrading from 1.3.4 to 1.3.5 ​

Nothing breaks. The items below are new; if you do not use them, behavior is the same as 1.3.4.

  • View state: getViewState(), setViewState(), the initialState option and the stateChanged event (Save and restore the whole view state).
  • Read methods: isEditing(), getEditing(), getEditValues(), getHistoryInfo(), hasFeature(), onAny(), describeGrid().
  • Change state: getRowState(), isCellChanged(), getRowsWithState(), revertRows(), revertCells(), acceptRows(), applyChanges(), events batchStarted and batchEnded (Batch save).
  • Soft remove: option removeMode ('hide', 'mark'), restoreRows(), purgeRemoved(), getChanges({ includeDiscarded }), events rowsSoftRemoved and rowsRestored (Data and rows). The default 'delete' is the same as 1.3.4.
  • Clipboard: option clipboard (delimiter, copyAs, paste, cut, addRows), columns copyValue and pasteable, copyRows(), hooks beforeCopy, beforeCut, beforePaste, copyCell, copyHeader, pasteCell, events copyStarted, cutStarted, pasteStarted, cellsCopied (Copy and paste).
  • Edit control: option editApply, beginBulkEdit() and endBulkEdit(), events editRequested, editRejected, bulkEditStarted, bulkEditEnded (Cell editing).

Upgrading from 1.3.5 to 1.3.6 ​

Nothing breaks. The items below are new; if you do not use them, behavior is the same as 1.3.5.

  • Focus control: hooks nextCell, nextHeader, tabOut, entryFocus, clearFocus(), moveFocus(), focusHeader(), getFocusedHeader(), scrollToColumn() and the event headerFocused (Control focus and movement yourself).
  • Menus and events: hook beforeContextMenu, events contextMenuRequested, cellLongPressed, cellMouseOver/Out/Down, headerMouseOver/Out, cellMenuOpened/Closed, columnMenuOpened/Closed, noMatches, options columnMenu.items/header, cellMenu.allowWithCtrl, sortMode, and zone on click events (a click on a row number cell now fires cellClicked with an empty columnId). Nothing changes if you do not use them, but check click handlers that assume a columnId on row number cells.
  • Filter extensions: options quickFilter and externalFilter, setQuickFilter(), getQuickFilter(), resetQuickFilter(), isQuickFilterPresent(), refreshFilter(), column filterAdapter and the event quickFilterChanged. The server paging loadPage request gets an optional quickFilter (Quick filter and external filter).
  • Per-row options and editors: editorOptions as a function, columns optionsFrom, optionLabel and cellEditorFor (Per-row options and editors). A fixed editorOptions array and cellEditor are unchanged.
  • Utility columns: options extraColumns, stateColumn, rowNumbers, isRowCheckVisible, setUtilityColumn(), getUtilityColumns() and the click-event zone values state and state-header (Row number, checkbox and state columns). Nothing changes if you do not use them.