Skip to content

Conversation

@crisbeto
Copy link
Member

@crisbeto crisbeto commented Jan 21, 2026

Since we reuse rows when virtual scrolling is enabled, supporting multiple row templates is tricky. These changes throw an error and update the docs.

@crisbeto crisbeto requested a review from andrewseguin January 21, 2026 09:01
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Jan 21, 2026
@pullapprove pullapprove bot requested a review from adolgachev January 21, 2026 09:01
@crisbeto crisbeto force-pushed the 32670/virtual-scroll-multi-rows branch 2 times, most recently from 335117d to b814750 Compare January 21, 2026 13:11
throw getTableMultipleDefaultRowDefsError();

if (typeof ngDevMode === 'undefined' || ngDevMode) {
if (this._virtualScrollEnabled() && this._rowDefs.some(def => def.when)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd leave a comment with #32670 as context saying that the current logic doesn't support it, but it isn't necessarily infeasible with some future changes. Currently this gives the impression that they are fundamentally incompatible

…al scrolling

Since we reuse rows when virtual scrolling is enabled, supporting multiple row templates is tricky. These changes throw an error and update the docs.
@crisbeto crisbeto force-pushed the 32670/virtual-scroll-multi-rows branch from b814750 to 4996089 Compare January 23, 2026 06:51
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jan 23, 2026
@crisbeto crisbeto merged commit e78587f into angular:main Jan 23, 2026
24 of 27 checks passed
@crisbeto
Copy link
Member Author

This PR was merged into the repository. The changes were merged into the following branches:

crisbeto added a commit that referenced this pull request Jan 23, 2026
…al scrolling (#32682)

Since we reuse rows when virtual scrolling is enabled, supporting multiple row templates is tricky. These changes throw an error and update the docs.

(cherry picked from commit e78587f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: cdk/table target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants