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 changed | Who is affected | To get the old behavior |
|---|---|---|
| In Excel export, date and time columns become Excel date cells instead of text cells | Apps that export columns with kind: 'date', 'time' or 'datetime' to .xlsx | dateAsText: true |
removeRows and updateRows called from code become one undo step | Apps that call these methods and use Ctrl+Z | undoLimit: 0, transact, clearHistory() |
| Delete and Backspace clear a date or time cell | Apps with editable date or time columns | No option. Set the column to editable: false |
Actions that write many cells (paste, cut, clearing a range) no longer emit editStarted per cell | Code that used editStarted to notice a paste | Listen to cellsPasted or editCommitted |
| The bundle is about 12% bigger (gzip) | Apps that use maxgrid.min.js | The 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 language | Apps that check screen reader text, or whose page lang differs from the grid locale | Make locale match the page language |
| Sheet name and number format checks in Excel export are stricter | Apps that use sheetName or numberFormats | See "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.
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.
// 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 "!", plusaria-invalid). Color is not the only cue: the reason is in the cell'stitleand is announced politely to screen readers. ThevalidationFailedevent arrives too. In a range, only that cell is skipped. Only user actions (keyboard, paste, cut) mark the cell; when your app callspasteCells, 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 itrequired. 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.
| File | What it holds | Size (gzip) |
|---|---|---|
maxgrid.themes.min.js | MaxGrid.themes: createTheme, applyTheme, checkTheme | about 4.4 KB |
maxgrid.picker.min.js | MaxGrid.picker: date and time pickers to use without a grid | about 24 KB |
Load both after maxgrid.min.js. In the wrong order they throw an English error.
Types and language
ColumnKindgained'time'and'datetime'. Code that switches over every column kind (anevercheck) needs the two cases to compile.GridOptions['locale']isLocaleCode, 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 toLocaleCode.- The language pack registry is separate for each bundle. If you create the grid with the
maxgridpackage, importregisterLocalefrommaxgrid(Languages and language packs). registerLocalestores the packcodein canonical form ('ZH-hant'becomes'zh-Hant') and throws for a code that is not a valid language tag. 1.1.0 had noregisterLocale, so this affects only apps that use it now.- A column with
validation.customis 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
Sheet1when empty and is cut at 31 characters. Also,History(reserved by Excel) throwsTypeError, 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
Dateor a string, goes out as the sameYYYY-MM-DDtext, and you are told once per export (throughonErrorwhen 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
editStartedarrives.editCommittedstill arrives per cell (3,000 times for 3,000 cells),rowsChangedonce, and undo is one step. In return, thousands of cells take tens of milliseconds. A paste can also be noticed through the singlecellsPastedevent. historyChangedgained the optional fieldsrowKeysandhiddenCount(how many rows the filter hides). The existing fields are unchanged.- The total rows that
getDisplayRowreturns gainedrowId(when you usesummary.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.0or 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.rowsnow shows every configured row on every page (1.2.0 to 1.3.0 showed only one). - PDF fonts:
fonttakes 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-scand chainfont: [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.suggestcan also be'@maxgrid/export-font-sc'. If you narrowedsuggestto'@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(), theinitialStateoption and thestateChangedevent (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(), eventsbatchStartedandbatchEnded(Batch save). - Soft remove: option
removeMode('hide','mark'),restoreRows(),purgeRemoved(),getChanges({ includeDiscarded }), eventsrowsSoftRemovedandrowsRestored(Data and rows). The default'delete'is the same as 1.3.4. - Clipboard: option
clipboard(delimiter,copyAs,paste,cut,addRows), columnscopyValueandpasteable,copyRows(), hooksbeforeCopy,beforeCut,beforePaste,copyCell,copyHeader,pasteCell, eventscopyStarted,cutStarted,pasteStarted,cellsCopied(Copy and paste). - Edit control: option
editApply,beginBulkEdit()andendBulkEdit(), eventseditRequested,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 eventheaderFocused(Control focus and movement yourself). - Menus and events: hook
beforeContextMenu, eventscontextMenuRequested,cellLongPressed,cellMouseOver/Out/Down,headerMouseOver/Out,cellMenuOpened/Closed,columnMenuOpened/Closed,noMatches, optionscolumnMenu.items/header,cellMenu.allowWithCtrl,sortMode, andzoneon click events (a click on a row number cell now firescellClickedwith an empty columnId). Nothing changes if you do not use them, but check click handlers that assume acolumnIdon row number cells. - Filter extensions: options
quickFilterandexternalFilter,setQuickFilter(),getQuickFilter(),resetQuickFilter(),isQuickFilterPresent(),refreshFilter(), columnfilterAdapterand the eventquickFilterChanged. The server pagingloadPagerequest gets an optionalquickFilter(Quick filter and external filter). - Per-row options and editors:
editorOptionsas a function, columnsoptionsFrom,optionLabelandcellEditorFor(Per-row options and editors). A fixededitorOptionsarray andcellEditorare unchanged. - Utility columns: options
extraColumns,stateColumn,rowNumbers,isRowCheckVisible,setUtilityColumn(),getUtilityColumns()and the click-eventzonevaluesstateandstate-header(Row number, checkbox and state columns). Nothing changes if you do not use them.