Skip to content

WG Demos - Update editorType/widget import statements for Grid-related widget demos#33919

Open
charlescordialDevExpress wants to merge 1 commit into
DevExpress:26_1from
charlescordialDevExpress:fix/wg-demo-import-grids
Open

WG Demos - Update editorType/widget import statements for Grid-related widget demos#33919
charlescordialDevExpress wants to merge 1 commit into
DevExpress:26_1from
charlescordialDevExpress:fix/wg-demo-import-grids

Conversation

@charlescordialDevExpress

Copy link
Copy Markdown

What does the PR change?

  1. Updates the editorType and widget import statements in grid-related widget demos to use the correct module references.

How did you achieve this?

  1. Reviewed the grid-related widget demos that use editorType and widget imports.
  2. Updated the import statements to align with the current module structure and import conventions.
  3. Verified that the affected demos compile and load successfully after the changes.

How can we verify these changes?

  1. Build and run the WG Demos project.
  2. Open the grid-related widget demos.
  3. Confirm that the demos render correctly without import or module resolution errors.
  4. Verify that all grid-related widgets function as expected

Copilot AI review requested due to automatic review settings June 9, 2026 06:31
@charlescordialDevExpress charlescordialDevExpress requested a review from a team as a code owner June 9, 2026 06:31

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.

Pull request overview

Updates several grid-related demo apps (DataGrid/CardView across Angular/React/Vue) so editorType/widget-based editors load the correct DevExtreme widget modules via direct devextreme/ui/* side-effect imports, avoiding reliance on framework wrapper modules for registration.

Changes:

  • Added direct widget module imports (e.g., devextreme/ui/button, devextreme/ui/text_area, devextreme/ui/select_box) where demos configure widget="dxButton" / editorType="dxTextArea" / editorType="dxSelectBox".
  • Removed Angular wrapper modules (DxButtonModule, DxTextAreaModule, DxSelectBoxModule) from demo component imports where the widgets are referenced via widget/editorType rather than Angular components.
  • Cleaned up a couple of React entrypoints by removing an eslint disable comment (needs to be kept for consistency with other demos’ anti-forgery import).

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
apps/demos/Demos/DataGrid/Toolbar/Vue/App.vue Ensures dxButton toolbar items are registered via devextreme/ui/button.
apps/demos/Demos/DataGrid/Toolbar/ReactJs/App.js Ensures dxButton toolbar items are registered via devextreme/ui/button.
apps/demos/Demos/DataGrid/Toolbar/React/App.tsx Ensures dxButton toolbar items are registered via devextreme/ui/button.
apps/demos/Demos/DataGrid/Toolbar/Angular/app/app.component.ts Switches from Angular button module usage to direct devextreme/ui/button registration for widget="dxButton".
apps/demos/Demos/DataGrid/PopupEditing/Vue/App.vue Switches TextArea registration to devextreme/ui/text_area for editor-type="dxTextArea".
apps/demos/Demos/DataGrid/PopupEditing/ReactJs/App.js Switches TextArea registration to devextreme/ui/text_area for editorType="dxTextArea".
apps/demos/Demos/DataGrid/PopupEditing/React/App.tsx Switches TextArea registration to devextreme/ui/text_area for editorType="dxTextArea".
apps/demos/Demos/DataGrid/PopupEditing/Angular/app/app.component.ts Drops DxTextAreaModule and registers dxTextArea via devextreme/ui/text_area.
apps/demos/Demos/DataGrid/FormEditing/Vue/App.vue Switches TextArea registration to devextreme/ui/text_area for editor-type="dxTextArea".
apps/demos/Demos/DataGrid/FormEditing/ReactJs/App.js Switches TextArea registration to devextreme/ui/text_area for editorType="dxTextArea".
apps/demos/Demos/DataGrid/FormEditing/React/App.tsx Switches TextArea registration to devextreme/ui/text_area for editorType="dxTextArea".
apps/demos/Demos/DataGrid/FormEditing/Angular/app/app.component.ts Drops DxTextAreaModule and registers dxTextArea via devextreme/ui/text_area.
apps/demos/Demos/CardView/WebAPIService/Vue/App.vue Adds devextreme/ui/select_box for editor-type="dxSelectBox".
apps/demos/Demos/CardView/WebAPIService/ReactJs/App.js Adds devextreme/ui/select_box for editorType="dxSelectBox".
apps/demos/Demos/CardView/WebAPIService/React/index.tsx Removes an eslint disable comment above anti-forgery import (should be retained to avoid lint errors).
apps/demos/Demos/CardView/WebAPIService/React/App.tsx Adds devextreme/ui/select_box for editorType="dxSelectBox".
apps/demos/Demos/CardView/WebAPIService/Angular/app/app.component.ts Drops DxSelectBoxModule and registers dxSelectBox via devextreme/ui/select_box.
apps/demos/Demos/CardView/PopupEditing/Vue/App.vue Switches TextArea registration to devextreme/ui/text_area for editor-type="dxTextArea".
apps/demos/Demos/CardView/PopupEditing/ReactJs/App.js Switches TextArea registration to devextreme/ui/text_area for editorType="dxTextArea".
apps/demos/Demos/CardView/PopupEditing/React/App.tsx Switches TextArea registration to devextreme/ui/text_area for editorType="dxTextArea".
apps/demos/Demos/CardView/PopupEditing/Angular/app/app.component.ts Drops DxTextAreaModule and registers dxTextArea via devextreme/ui/text_area.
apps/demos/Demos/CardView/DataValidation/Vue/App.vue Switches TextArea registration to devextreme/ui/text_area for editor-type="dxTextArea".
apps/demos/Demos/CardView/DataValidation/ReactJs/App.js Registers dxTextArea via devextreme/ui/text_area.
apps/demos/Demos/CardView/DataValidation/React/index.tsx Removes an eslint disable comment above anti-forgery import (should be retained to avoid lint errors).
apps/demos/Demos/CardView/DataValidation/React/App.tsx Registers dxTextArea via devextreme/ui/text_area.
apps/demos/Demos/CardView/DataValidation/Angular/app/app.component.ts Drops DxTextAreaModule and registers dxTextArea via devextreme/ui/text_area.

Comment on lines 4 to 6
import App from './App.tsx';
// eslint-disable-next-line import/no-unresolved

import 'anti-forgery';
Comment on lines 4 to 6
import App from './App.tsx';
// eslint-disable-next-line import/no-unresolved

import 'anti-forgery';
Comment on lines +71 to 73
import 'devextreme/ui/select_box';
import * as AspNetData from 'devextreme-aspnet-data-nojquery';
import 'devextreme-vue/text-area';
Comment on lines 4 to +5
import 'devextreme-react/text-area';
import 'devextreme/ui/select_box';
Comment on lines 12 to +13
import 'devextreme-react/text-area';
import 'devextreme/ui/select_box';
@charlescordialDevExpress charlescordialDevExpress changed the title fix: update editorType/widget import module line for grid-related demos WG Demos - Update editorType/widget import statements for Grid-related widget demos Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants