Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtual scroll: sticky header/footer #11621

Closed
amcdnl opened this issue Jun 1, 2018 · 10 comments
Closed

virtual scroll: sticky header/footer #11621

amcdnl opened this issue Jun 1, 2018 · 10 comments
Assignees
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix

Comments

@amcdnl
Copy link
Contributor

amcdnl commented Jun 1, 2018

Requirement

We need the ability to make things sticky within the virtual scroll area. This directly relates to sticky header/footer/rows in the table.

API

An idea for the API would be to expose a new content projection area like:

  <cdk-virtual-scroll-viewport [itemSize]="35">
    <cdk-virtual-scroll-sticky position="start">
      MY HEADER
    </cdk-virtual-scroll-sticky>
    <div *cdkVirtualFor="let row of rows$ | async">
    </div>
    <cdk-virtual-scroll-sticky position="end">
      MY FOOTER
    </cdk-virtual-scroll-sticky>
</cdk-virtual-scroll-viewport>

Then we could set position sticky to those sticky projections. One issue with this approach is how do we tell the cdk-virtual-scroll-content-wrapper to accommodate the offset of the header/footer?

@amcdnl
Copy link
Contributor Author

amcdnl commented Jun 1, 2018

//cc @mmalerba @andrewseguin

@amcdnl amcdnl changed the title virtual scroll: Sticky header/footer virtual scroll: sticky header/footer Jun 1, 2018
@amcdnl
Copy link
Contributor Author

amcdnl commented Jun 1, 2018

After thinking about this, I think we should go w/ a different approach for the table thus making this not applicable.

@amcdnl amcdnl closed this as completed Jun 1, 2018
@rutsche
Copy link

rutsche commented Oct 30, 2018

any news on this?

@ahmadakra
Copy link

ahmadakra commented Nov 6, 2018

@amcdnl
We are trying to do exactly that, keep the thead sticky and apply virtual scrolling to the tbody, what was the different approach you came up with? Best wishes

@Hotalenw
Copy link

Hotalenw commented Jan 14, 2019

@amcdnl Same question as @ahmadakra above? The

<thead>

needs to remain sticky.

@mmalerba mmalerba added the feature This issue represents a new feature or feature request rather than a bug or bug fix label Jan 14, 2019
@mmalerba mmalerba self-assigned this Jan 14, 2019
@gurshinder78
Copy link

Any update? This is must requirement for data with large data set as user lost focus while scrolling and difficult to identify column

@AbhijithSugunan
Copy link

apply virtual scroll to body gonna inject a div inside the tbody, which gonna make start a style battle

@shashankinbab
Copy link

I also need sticky header in table. On scroll it sticky content got disturb and displayed in middle. Any luck

@rahulbhooteshwar
Copy link

@shashankinbab I am facing the same issue . Is there any update on the same ?

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix
Projects
None yet
Development

No branches or pull requests

9 participants