Skip to content

GridCore data: Remove DataSourceAdapter dynamic member-copy and type _dataSource - #34980

Draft
bit-byte0 wants to merge 5 commits into
DevExpress:mainfrom
bit-byte0:refactor/gridcore-datacontroller-type-datasource-adapter-26_2
Draft

GridCore data: Remove DataSourceAdapter dynamic member-copy and type _dataSource#34980
bit-byte0 wants to merge 5 commits into
DevExpress:mainfrom
bit-byte0:refactor/gridcore-datacontroller-type-datasource-adapter-26_2

Conversation

@bit-byte0

Copy link
Copy Markdown
Contributor

What

Removes the runtime block in DataSourceAdapter that dynamically copied every DataSource method onto the adapter, and types DataController._dataSource as DataSourceAdapter instead of any

How

Replaced the dynamic copy with explicit typed delegates on the adapter, promoted the adapter's consumed methods to public, and narrowed _dataSource to the concrete adapter subtype in the virtual scrolling and tree_list extenders where subclass methods are used

@bit-byte0 bit-byte0 added the 26_2 label Aug 29, 2026
@bit-byte0 bit-byte0 self-assigned this Aug 29, 2026
…atacontroller-type-datasource-adapter-26_2

# Conflicts:
#	packages/devextreme/js/__internal/grids/data_grid/grouping/m_grouping.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant