question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Data table] Header should be sticky

See original GitHub issue

Use this template if you want to request a new feature, or a change to an existing feature.

If you are reporting a bug or problem, please use the bug template instead.

Summary

The head of the data table should be ‘sticky’ and only the table body will be scrolled so when user looks at the data, they can reference the column name quickly without back-and-forth scrolling.

Another problem with it is if tbody ends up being very tall, user can not see the horizontal scroll bar as the visual cue which indicates there are more columns to the right. (see below) ta

require review from both design and development

Justification

It’s a pretty standard data table / grid behavior for the ease of use when number of rows cause the parent container to scroll.

Desired UX and success metrics

  1. it should be flexible - user should not need to be asked to defined the specific dimension.
  2. width of the columns should still be dynamic based on the content - just like the way it is right now

“Must have” functionality

same as the previous section

Specific timeline issues / requests

2019 Q1

Available extra resources

N/A

Extra

I raised this question on slack, was suggested to try out: https://github.ibm.com/IBMDecisionOptimization/dd-carbon-addons-do and a demo here https://pages.github.ibm.com/IBMDecisionOptimization/dd-carbon-addons-do/packages/carbon-addons-do-react-grids/storybook/

Even though it has what I wanted - sticky table head, this add-on is not compatible with our analytics platform styles (ap styles) as the grid itself doesn’t share the bx class names. Moreover, the significant API changes will require us more time on the migration.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:38 (24 by maintainers)

github_iconTop GitHub Comments

2reactions
lovemecomputercommented, May 16, 2019

@rraavi to your point tho, i’ll comment back here once a PR is up for review so you can check our solution. happy to hear your thoughts!

2reactions
aagonzalescommented, Jan 7, 2019

I would like to see a fleshed out design of this before agreeing to the pattern.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FixedHeader - DataTables
FixedHeader provides the ability to perform this action with DataTables tables. It operates by detaching the header and footer elements from the host...
Read more >
Making Tables With Sticky Header and Footers Got a Bit Easier
It wasn't long ago when I looked at sticky headers and footers in HTML s in the blog post A table with both...
Read more >
DataTable Fixed Header Not Being Applied - Stack Overflow
dataTables CSS file which was causing you the page from rendering properly (with the fixed headers). Working DEMO: - https://jsfiddle.net/ ...
Read more >
So hard to make table header sticky - DEV Community ‍ ‍
It is classic to display data with a table, each row is a record, each column is a data field, and the page...
Read more >
Sticky header in data table - Anvil Q&A
I have used data row panel as header for the table. So while scrolling on the table the header should be in its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found