Migrating from DevExtreme DataGrid (DevExpress)

DevExtreme DataGrid is a deep, commercial multi-framework grid from DevExpress (jQuery, React, Vue, Angular). Moving to SvGrid trades the commercial suite for a Svelte-5-native grid with an MIT core and a far lower-cost paid tier.

Estimated effort: 3-6 hours per grid.

DevExtreme's option names vary by framework flavour; map your version's columns and events onto the SvGrid equivalents below.

Concept map

DevExtreme DataGrid sv-grid
columns: [{ dataField, caption }] columns: [{ field, header }]
cellTemplate cell: (c) => renderSnippet(...)
editing: { mode, allowUpdating } enableInlineEditing + editorType
sorting / filterRow / headerFilter rowSortingFeature / columnFilteringFeature
grouping + summary columnGroupingFeature + aggregates
masterDetail rowExpandingFeature / master-detail rows
dataSource (store / remote) data array or externalSort/Filter
paging + pager showPagination
export @svgrid/enterprise export pack
stateStoring persist column state yourself (saved views)

Shape of the change

The example at the end of this page runs against these rows:

<script lang="ts">
  import { SvGrid, type GridColumns } from '@svgrid/grid'

  type Person = {
    id: number
    name: string
    department: string
    city: string
    age: number
    salary: number
  }

  const people: Person[] = [
    { id: 1, name: 'Ada Lovelace',   department: 'Engineering', city: 'London',   age: 36, salary: 142000 },
    { id: 2, name: 'Grace Hopper',   department: 'Engineering', city: 'New York', age: 45, salary: 168000 },
    { id: 3, name: 'Linus Torvalds', department: 'Platform',    city: 'Portland', age: 54, salary: 155000 },
    { id: 4, name: 'Radia Perlman',  department: 'Networking',  city: 'Seattle',  age: 49, salary: 161000 },
    { id: 5, name: 'Barbara Liskov', department: 'Platform',    city: 'Boston',   age: 52, salary: 172000 },
  ]

  let rows = $state<Person[]>(people)

  const columns: GridColumns<Person> = [
    { field: 'name',       header: 'Name',       width: 200, editorType: 'text' },
    { field: 'department', header: 'Department', width: 150, editorType: 'text' },
    { field: 'city',       header: 'City',       width: 140, editorType: 'text' },
    { field: 'age',        header: 'Age',        width: 90,  editorType: 'number' },
    { field: 'salary',     header: 'Salary',     width: 130, editorType: 'number', format: { type: 'currency', currency: 'USD' } },
  ]
</script>
- $('#grid').dxDataGrid({
-   dataSource: rows,
-   paging: { pageSize: 25 },
-   sorting: { mode: 'multiple' }, filterRow: { visible: true },
-   editing: { mode: 'cell', allowUpdating: true },
-   columns: [
-     { dataField: 'name',   caption: 'Name' },
-     { dataField: 'amount', caption: 'Amount', format: 'currency' },
-   ],
- })

+ <SvGrid
+   data={rows}
+   columns={[
+     { field: 'name',   header: 'Name' },
+     { field: 'amount', header: 'Amount', format: { type: 'currency', currency: 'USD' } },
+   ]}
+   features={tableFeatures({ rowSortingFeature, columnFilteringFeature })}
+   showPagination enableInlineEditing />

Why teams switch

What to weigh

Frequently asked questions

How do DevExtreme columns map to SvGrid?

dataField becomes field, caption becomes header, and cellTemplate becomes a renderSnippet cell. Sorting / filtering / grouping move from grid options to registered features.

Is SvGrid cheaper than DevExtreme?

For a Svelte stack, yes - the core is MIT and the paid tier is far below commercial-suite pricing. You give up DevExtreme's multi-framework reach and some built-in features like stateStoring.

Does SvGrid export like DevExtreme?

Yes, via the @svgrid/enterprise pack: Excel, PDF, CSV, TSV, and HTML export plus a printable view.

What you end up with

Grouping with totals plus the filter row, the DevExtreme default layout.

<SvGrid data={rows} {columns} groupBy={['department']} summary groupable sortable filterMode="row" />

See also

Related articles