New to KendoReact? Start a free 30-day trial
Migrating KendoReact v10 to v11
This page outlines the available codemods for migrating from KendoReact v10 to KendoReact v11.
Starting with KendoReact 11, some component packages now provide codemods to help you migrate between major versions. Check out Assisted Migration.
Best Practices
For a more manageable migration process, consider the following recommended practices:
- Migrate between consecutive major versions. For example, migrate from v10 to v11. This lets you review and adjust your code version by version, avoiding possible conflicts between breaking changes.
- Migrate one package at a time. This provides finer control over the migration process.
Data Grid
bash
# Migrate to the latest available package version.
npx @progress/kendo-cli migrate @progress/kendo-react-grid
# OR migrate from v10 to v11.
npx @progress/kendo-cli migrate @progress/kendo-react-grid --from=10 --to=11
# If not already installed, you will be prompted to install the Kendo CLI.
All Data Grid codemods perform the following:
- Find all KendoReact Grid components in your code. The transformations recognize custom import names as well.
- Handle both class and functional components.
- Preserve your existing code.
- Add missing imports.
The following table outlines the specific Data Grid codemod transformations:
Codemod | Description |
---|---|
New custom cell | Migrates from the deprecated cellRender prop to the new cells prop:
|
New custom column cell | Migrates from the deprecated cell prop to the new cells prop:
|
New custom column filter cell | Migrates from the deprecated filterCell prop to the new cells prop:
|
New custom column footer cell | Migrates from the deprecated footerCell prop to the new cells prop:
|
New custom column header cell | Migrates from the deprecated headerCell prop to the new cells prop:
|
New detail expand state mechanism | Migrates from the deprecated onExpandChange event handler to the new controlled component pattern using the detailExpand state and the onDetailExpandChange event handler:
|
New edit state mechanism | Migrates from the deprecated editField prop to the new controlled component pattern using the edit state and event handlers:
|
New custom filter cell | Migrates from the deprecated filterCellRender prop to the new cells prop:
|
New group expand state mechanism | Migrates from the deprecated onExpandChange event handler to the new controlled component pattern using groupExpand state and onGroupExpandChange event handlers.
|
New custom header cell | Migrates from the deprecated headerCellRender prop to the new cells prop:
|
New custom row | Migrates from the deprecated rowRender prop to the new rows prop:
|
New selection state mechanism | Migrates from the deprecated selectedField prop to the new controlled component pattern using select state and onSelectionChange event handlers.
|
Date Inputs
bash
# Migrate to the latest available package version.
npx @progress/kendo-cli migrate @progress/kendo-react-dateinputs
# OR migrate from v10 to v11.
npx @progress/kendo-cli migrate @progress/kendo-react-dateinputs --from=10 --to=11
# If not already installed, you will be prompted to install the Kendo CLI.
The following table outlines the specific Date Inputs codemod transformations:
Codemod | Description |
---|---|
New DateInputHandle type | (TypeScript-only) Migrates type annotations from the deprecated DateInput type to the new DateInputHandle type. |
New DatePickerHandle type | (TypeScript-only) Migrates type annotations from the deprecated DatePicker type to the new DatePickerHandle type. |
Dialogs
bash
# Migrate to the latest available package version.
npx @progress/kendo-cli migrate @progress/kendo-react-dialogs
# OR migrate from v10 to v11.
npx @progress/kendo-cli migrate @progress/kendo-react-dialogs --from=10 --to=11
# If not already installed, you will be prompted to install the Kendo CLI.
The following table outlines the specific Dialogs codemod transformations:
Codemod | Description |
---|---|
New DialogHandle type | (TypeScript-only) Migrates type annotations from the deprecated Dialog type to the new DialogHandle type. |
TreeList
bash
# Migrate to the latest available package version.
npx @progress/kendo-cli migrate @progress/kendo-react-treelist
# OR migrate from v10 to v11.
npx @progress/kendo-cli migrate @progress/kendo-react-dialogs --from=10 --to=11
# If not already installed, you will be prompted to install the Kendo CLI.
The following table outlines the specific TreeList codemod transformations:
Codemod | Description |
---|---|
New TreeListToolbarHandle type | (TypeScript-only) Migrates type annotations from the deprecated TreeListToolbar type to the new TreeListToolbarHandle type. |