Skip to content

DataGrid - Remove deprecated 'rowTemplate' option - #35280

Merged
Tucchhaa merged 4 commits into
DevExpress:mainfrom
Tucchhaa:remove_rowTemplate_26_2
Sep 25, 2026
Merged

Tucchhaa merged 4 commits into
DevExpress:mainfrom
Tucchhaa:remove_rowTemplate_26_2

Conversation

@Tucchhaa

@Tucchhaa Tucchhaa commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

rowTemplate is deprecated and dataRowTemplate should be sed instead.
This PR remove rowTemplate. Test for rowTemplate were either rewritten for dataRowTemplate or removed, since dataRowTemplate has an equivalent test.

Difference between rowTemplate and dataRowTemplate is that rowTemplate can used to customize data rows and group rows, but dataRowTemplate is only for data rows.

However, user still has the ability to customize group rows using onRowPrepared API

@Tucchhaa Tucchhaa self-assigned this Sep 21, 2026
Copilot AI lite review requested due to automatic review settings September 21, 2026 16:59
@Tucchhaa Tucchhaa added the 26_2 label Sep 21, 2026
@Tucchhaa
Tucchhaa requested a review from a team as a code owner September 21, 2026 16:59
@github-actions github-actions Bot added the .d.ts label Sep 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved issues were identified in the reviewed changes.

Review effort: Lite
Findings: None

What changed in this PR

Removes the deprecated DataGrid rowTemplate option while retaining dataRowTemplate support.

Changes:

  • Removes legacy runtime handling, typings, and deprecation metadata.
  • Removes framework-wrapper bindings.
  • Updates supported-template behavior and related tests.
File Summary
packages/​devextreme/​ts/​dx.all.d.ts Removes deprecated declarations.
packages/​devextreme/​testing/​tests/​DevExpress.ui.widgets.dataGrid/​virtualScrolling.integration.tests.js Migrates virtual-scrolling template tests.
packages/​devextreme/​testing/​tests/​DevExpress.ui.widgets.dataGrid/​selection.tests.js Updates selection coverage.
packages/​devextreme/​testing/​tests/​DevExpress.ui.widgets.dataGrid/​rowsView.tests.js Updates row-rendering tests.
packages/​devextreme/​testing/​tests/​DevExpress.ui.widgets.dataGrid/​rowDragging.tests.js Removes legacy dragging coverage.
packages/​devextreme/​testing/​tests/​DevExpress.ui.widgets.dataGrid/​masterDetail.integration.tests.js Migrates master-detail coverage.
packages/​devextreme/​testing/​tests/​DevExpress.ui.widgets.dataGrid/​keyboardNavigation.realControllers.tests.js Migrates keyboard tests.
packages/​devextreme/​testing/​tests/​DevExpress.ui.widgets.dataGrid/​errorHandling.tests.js Migrates error-row coverage.
packages/​devextreme/​testing/​tests/​DevExpress.ui.widgets.dataGrid/​editing.tests.js Migrates editing tests.
packages/​devextreme/​testing/​tests/​DevExpress.ui.widgets.dataGrid/​dataGrid.tests.js Removes legacy API tests.
packages/​devextreme/​testing/​tests/​DevExpress.ui.widgets.dataGrid/​contextMenuView.tests.js Removes legacy context-menu coverage.
packages/​devextreme/​testing/​tests/​DevExpress.ui.widgets.dataGrid/​adaptiveColumns.tests.js Migrates adaptive-column coverage.
packages/​devextreme/​testing/​tests/​DevExpress.knockout/​dataGrid.tests.js Updates Knockout template coverage.
packages/​devextreme/​js/​ui/​data_grid.d.ts Removes the public legacy option and type.
packages/​devextreme/​js/​ui/​data_grid_types.d.ts Removes the legacy type export.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​virtual_scrolling/​m_virtual_scrolling.ts Updates virtual-row wrapping.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​views/​m_rows_view.ts Removes legacy row rendering.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​views/​m_columns_view.ts Simplifies row wrapping.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​search/​m_search.ts Limits highlighting to dataRowTemplate.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​m_types.ts Removes the internal option type.
packages/​devextreme/​js/​__internal/​grids/​data_grid/​m_widget_base.ts Removes deprecation metadata.
packages/​devextreme-vue/​src/​data-grid.ts Removes Vue legacy bindings.
packages/​devextreme-react/​src/​data-grid.ts Removes React legacy mappings.
packages/​devextreme-angular/​src/​ui/​data-grid/​index.ts Removes Angular legacy bindings.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Eldar Iusupzhanov added 2 commits September 23, 2026 21:16
Copilot AI review requested due to automatic review settings September 23, 2026 13:17
@Tucchhaa
Tucchhaa force-pushed the remove_rowTemplate_26_2 branch from cc222d3 to e539506 Compare September 23, 2026 13:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The deprecated API removal and related implementation, wrapper, and test updates are complete.

Review effort: Lite
Findings: None

Comment thread packages/devextreme/js/__internal/grids/data_grid/m_widget_base.ts Outdated
Copilot AI review requested due to automatic review settings September 25, 2026 06:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved blocking issues were identified.

Review effort: Lite
Findings: None

this.getView('gridView').render(this.$element());
}

protected _setDeprecatedOptions() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now we can remove the whole method
may be postponed for next PR

@Tucchhaa
Tucchhaa added this pull request to the merge queue Sep 25, 2026
Merged via the queue into DevExpress:main with commit bcf6a82 Sep 25, 2026
149 checks passed
@Tucchhaa
Tucchhaa deleted the remove_rowTemplate_26_2 branch September 25, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants