Pick features
maxgrid.min.js is the all-in-one bundle with every feature, which makes it the easiest start. If you use few features, load the basic core bundle and add only what you need to shrink the download. core is about 42% smaller than the all-in-one bundle in gzip.
This does not apply to the React, Vue and Angular wrappers. A wrapper always has every feature on and has no features option. Use it with the maxgrid package (Plain JavaScript).
Which feature is where
Features come in eight bundles. The bundle name is the value you pass to features, the name of the entry point and the name of the file.
| Bundle | Features | Options | GridApi methods |
|---|---|---|---|
hierarchy | Tree, grouping, aggregation | tree, grouping, summary, column aggregate | expandRow, collapseRow, toggleRow, isRowExpanded, expandAll, collapseAll, expandToDepth, revealRow, getDisplayRow, setGroupBy, getGroupBy, getSummary |
editing | Cell editing, change tracking, save | column editable, saveHandler | startEdit, stopEdit, getChanges, hasChanges, commitChanges, rollbackChanges, save |
columns | Move, resize, hide and pin columns, header drag | moveColumn, resizeColumn, setColumnVisible, pinColumn, getColumnOrder, getColumnState, setColumnState | |
pagination | Paging (client and server) and the pager, see Pagination | pagination | getPage, setPage, getPageSize, setPageSize, getPageCount, getPageInfo, reloadPage |
filter | Header filter row and filter popup (filterMenu), see Header filter row | filterRow, filterMenu, column filter | None |
renderers | Six built-in cell renderers, see Built-in cell renderers | Column cellRenderer set to link, badge, progress, rating, avatar or tags | None |
drag | Drag and drop: rows, move or copy a cell range, fill handle (1.4.0), see Selection | rowDrag, cellDrag, cellFill, columns cellDraggable and fillable | None |
editors | Built-in cell editors beyond the base set, percent | Column cellEditor set to percent | None |
Everything not in a bundle is in core: the row store and data API, virtual scrolling, sorting, filtering, row selection and focus, cell renderer adapters, the theme CSS and the license check. Export is a separate package (@maxgrid/export), not part of any bundle.
Combine script tags
Load maxgrid.core.min.js first, then the extension files you need. An extension does not create a new global. It only adds a property to MaxGrid (MaxGrid.hierarchy, MaxGrid.editing, MaxGrid.columns).
<script
src="https://cdn.maxmine.com/maxgrid/1.8.0/maxgrid.core.min.js"
integrity="sha384-muu6D6W669jBnXzI5P+A5oQhxL75hfpAdMiUyW03XdNN9lroZW/oLFtR6uq9IifQ"
crossorigin="anonymous"
></script>
<script
src="https://cdn.maxmine.com/maxgrid/1.8.0/maxgrid.hierarchy.min.js"
integrity="sha384-qKFDAZ1O5XghvQIixV1o5jLwcW0IH7Ww36bozCoaRqaHWF/57EcoEi7D4Z9GVINQ"
crossorigin="anonymous"
></script>
<script
src="https://cdn.maxmine.com/maxgrid/1.8.0/maxgrid.editing.min.js"
integrity="sha384-MnXEmiY4VLoaJ2qOJoPdbSktM5dt2psSCIyVdnQcVLFLcCZNQONtdoJeYR9WXBFT"
crossorigin="anonymous"
></script>
<script>
const api = MaxGrid.createGrid(document.getElementById('grid'), {
columns,
rows,
rowKey: 'id',
grouping: { by: ['department'] },
features: [MaxGrid.hierarchy, MaxGrid.editing],
});
</script>For column operations, add maxgrid.columns.min.js and put MaxGrid.columns in features. If an extension loads before core, it throws an error telling you to load maxgrid.core.min.js first.
License key setup and status checks on core are the same as on the all-in-one bundle. Use MaxGrid.config({ licenseKey }) and MaxGrid.license() as they are (License key).
Combine with a bundler
With Vite, webpack and similar tools, install the package and import only the entry points you need. Bundles you do not import stay out of the output.
pnpm add maxgridimport { createGrid } from 'maxgrid/core';
import { hierarchy } from 'maxgrid/hierarchy';
import { editing } from 'maxgrid/editing';
createGrid(container, {
columns,
rows,
rowKey: 'id',
grouping: { by: ['department'] },
features: [hierarchy, editing],
});| Entry point | Contents |
|---|---|
maxgrid | The all-in-one bundle. Every feature is on |
maxgrid/core | Basic features only. Exports createGrid, config, license and more |
maxgrid/hierarchy, /editing, /columns | One bundle each. They export the values hierarchy, editing, columns |
Type declarations are included. The options type of createGrid in core is ModularGridOptions, which is GridOptions plus features. The package is marked as having no side effects in its JS files, and only the CSS file is marked as having some, so a bundler can safely drop code you do not use. The ESM entry points are available through the npm package only.
Split chunks in Vite 8 (Rolldown)
If a Vite 8 manualChunks rule pulls the framework code (Vue, React) into an mx-* chunk together with MaxGrid, that chunk loads on the first screen and the grid downloads at app start. To fetch it only when the grid screen opens, split one chunk per package with output.codeSplitting groups and set includeDependenciesRecursively: false so a group does not drag in the modules it depends on. Only the small license chunk then loads at start. The code below is an example to adapt; change the names and the regular expressions for your app.
// vite.config.ts (Vite 8)
import { defineConfig } from 'vite';
// Normalize Windows paths, then match the package folder. The trailing / keeps gantt apart from gantt-core.
const pkg = (name: string) => (id: string) =>
id.replaceAll('\\', '/').includes(`/node_modules/@maxgrid/${name}/`);
export default defineConfig({
build: {
rolldownOptions: {
output: {
codeSplitting: {
groups: [
{ name: 'mx-license', test: pkg('license'), includeDependenciesRecursively: false },
{ name: 'mx-core', test: pkg('core'), includeDependenciesRecursively: false },
{ name: 'mx-renderer', test: pkg('renderer'), includeDependenciesRecursively: false },
{
name: 'mx-gantt-core',
test: pkg('gantt-core'),
includeDependenciesRecursively: false,
},
{ name: 'mx-gantt', test: pkg('gantt'), includeDependenciesRecursively: false },
{ name: 'mx-vue', test: pkg('vue'), includeDependenciesRecursively: false },
],
},
},
},
},
});Load the grid screen late with import() (a lazy route). Then only mx-license loads at start and the other mx-* chunks load when the grid screen opens. If codeSplitting and manualChunks are both set, manualChunks is ignored. We checked the option names against the Vite 8.3 type declarations (build.rolldownOptions.output.codeSplitting.groups with name, test, priority and includeDependenciesRecursively); we did not run a build with this exact config. Chunk sizes depend on the app. In one real app the gzip sizes were core 175 KB, renderer 138 KB, gantt 27 KB, gantt-core 10.5 KB and the Vue wrapper 2 KB, as an example only; yours depend on the features you use and your bundler settings. After a build, look at the chunk list (dist/assets) to see which mx-* chunks the start screen requests.
What features does
featuresexists only oncreateGridfrommaxgrid/core. You choose per grid, so grids on one page can use different bundles.Passing the same bundle twice counts once. A value that is not a bundle throws a
GridError(invalid-option) before the grid is built.An option from a bundle you did not pick fails before the grid is built, with an error that names the bundle you need. It is never ignored silently.
text"grouping" 옵션에는 "hierarchy" 기능이 필요합니다. createGrid의 features에 등록하세요.The message is in Korean. The check covers
tree,grouping,summaryand columnaggregate(hierarchy), and columneditableandsaveHandler(editing).Calling a method from a bundle you did not pick (such as
api.startEdit()) throws the same kind of error. The types stay the same, so it compiles and is caught in tests.The
createGridof the all-in-one bundle (maxgrid.min.js) ignoresfeatures. Everything is already on.A bundle is a value made by MaxGrid. Writing and registering your own bundle is not supported.
Size
The gzip column is each file compressed on its own. Measured on 2026-11-13 (1.3.2). Every file includes the theme CSS (about 10.6 KB), and the development-only checks are stripped.
| File | Raw | gzip | brotli |
|---|---|---|---|
maxgrid.min.js (all-in-one) | 492,200 | 148,001 | 124,918 |
maxgrid.core.min.js | 292,441 | 85,317 | 74,223 |
maxgrid.hierarchy.min.js | 50,738 | 17,242 | 15,688 |
maxgrid.editing.min.js | 85,442 | 28,526 | 25,416 |
maxgrid.columns.min.js | 43,623 | 14,146 | 12,889 |
maxgrid.pagination.min.js | 17,484 | 6,412 | 5,760 |
maxgrid.filter.min.js | 73,038 | 24,057 | 21,595 |
maxgrid.renderers.min.js | 6,333 | 2,516 | 2,279 |
maxgrid.css | 58,910 | 10,592 | 9,358 |
maxgrid.css is the same file that is inside the JS. Load it separately only when you turn style injection off (Turn off style injection).
Transfer size by combination
With script tags, the size is the sum of the files (gzip).
| Combination | gzip | vs. all-in-one |
|---|---|---|
core | 85,317 | -42% |
core + renderers | 87,833 | -41% |
core + pagination | 91,729 | -38% |
core + columns | 99,463 | -33% |
core + hierarchy | 102,559 | -31% |
core + filter | 109,374 | -26% |
core + editing | 113,843 | -23% |
core + all six | 178,216 | +20% |
All-in-one maxgrid.min.js | 148,001 | baseline |
Extensions cannot share core internals, so each carries a few small shared helpers such as the error class and key utilities. With a few features the modular files are smaller. With all six, the all-in-one bundle is about 30 KB smaller; if you need everything, take the all-in-one bundle.
With ESM and a bundler, shared code is included once. On top of core (91,332 gzip with its shared chunk), each bundle adds the amount below.
| Combination | gzip | Added to core |
|---|---|---|
core + renderers | 93,486 | 2,154 |
core + pagination | 95,545 | 4,213 |
core + columns | 102,265 | 10,933 |
core + hierarchy | 103,134 | 11,802 |
core + filter | 109,058 | 17,726 |
core + editing | 112,785 | 21,453 |
If the server sends brotli, core is about 74.2 KB and the all-in-one bundle about 124.9 KB.
Common pitfalls
MaxGrid.hierarchy is undefined. The extension file did not load, or it loaded before core and threw. Check the console and use the order core, then extensions.
I loaded the all-in-one bundle and core together. Both create the global MaxGrid, and whichever loads later overwrites the earlier one. Use only one of them on a page.
I added features but nothing changes with the all-in-one bundle. That is expected. The all-in-one bundle has every feature on and does not read features. It raises no error either, so you can leave the array in place.
I switched to core and now get an error. The option or method you used belongs to a bundle. The message names the bundle, so add it to features.