Skip to content

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.

BundleFeaturesOptionsGridApi methods
hierarchyTree, grouping, aggregationtree, grouping, summary, column aggregateexpandRow, collapseRow, toggleRow, isRowExpanded, expandAll, collapseAll, expandToDepth, revealRow, getDisplayRow, setGroupBy, getGroupBy, getSummary
editingCell editing, change tracking, savecolumn editable, saveHandlerstartEdit, stopEdit, getChanges, hasChanges, commitChanges, rollbackChanges, save
columnsMove, resize, hide and pin columns, header dragmoveColumn, resizeColumn, setColumnVisible, pinColumn, getColumnOrder, getColumnState, setColumnState
paginationPaging (client and server) and the pager, see PaginationpaginationgetPage, setPage, getPageSize, setPageSize, getPageCount, getPageInfo, reloadPage
filterHeader filter row and filter popup (filterMenu), see Header filter rowfilterRow, filterMenu, column filterNone
renderersSix built-in cell renderers, see Built-in cell renderersColumn cellRenderer set to link, badge, progress, rating, avatar or tagsNone
dragDrag and drop: rows, move or copy a cell range, fill handle (1.4.0), see SelectionrowDrag, cellDrag, cellFill, columns cellDraggable and fillableNone
editorsBuilt-in cell editors beyond the base set, percentColumn cellEditor set to percentNone

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).

html
<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.

bash
pnpm add maxgrid
ts
import { 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 pointContents
maxgridThe all-in-one bundle. Every feature is on
maxgrid/coreBasic features only. Exports createGrid, config, license and more
maxgrid/hierarchy, /editing, /columnsOne 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.

ts
// 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 ​

  • features exists only on createGrid from maxgrid/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, summary and column aggregate (hierarchy), and column editable and saveHandler (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 createGrid of the all-in-one bundle (maxgrid.min.js) ignores features. 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.

FileRawgzipbrotli
maxgrid.min.js (all-in-one)492,200148,001124,918
maxgrid.core.min.js292,44185,31774,223
maxgrid.hierarchy.min.js50,73817,24215,688
maxgrid.editing.min.js85,44228,52625,416
maxgrid.columns.min.js43,62314,14612,889
maxgrid.pagination.min.js17,4846,4125,760
maxgrid.filter.min.js73,03824,05721,595
maxgrid.renderers.min.js6,3332,5162,279
maxgrid.css58,91010,5929,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).

Combinationgzipvs. all-in-one
core85,317-42%
core + renderers87,833-41%
core + pagination91,729-38%
core + columns99,463-33%
core + hierarchy102,559-31%
core + filter109,374-26%
core + editing113,843-23%
core + all six178,216+20%
All-in-one maxgrid.min.js148,001baseline

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.

CombinationgzipAdded to core
core + renderers93,4862,154
core + pagination95,5454,213
core + columns102,26510,933
core + hierarchy103,13411,802
core + filter109,05817,726
core + editing112,78521,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.