Autodesk / react-base-table

A react table component to display large datasets with high performance and flexibility
https://autodesk.github.io/react-base-table/
MIT License
1.5k stars 165 forks source link

Is it possible to have the last row of the table fixed? #125

Closed VigneshSubramaniam closed 4 years ago

VigneshSubramaniam commented 4 years ago

Hi @nihgwu , I'm loving his Table and it provides almost all the required features. One question though. There's a custom footer option provided. But it's not scrolling if we have horizontal scroll/fixed left columns inside the table. Is it possible to have something of that sort? Let's say i have 1000 rows and the last row is total. I want that to be displayed always. Any help would be appreciated. Thanks!

nihgwu commented 4 years ago

@VigneshSubramaniam I'd say that's impossible with the current BaseTable. In our products we use the first row(frozen) to show aggregate data, there are some reasons to not support that, but I can't remember now(maybe weird visual behavior)

VigneshSubramaniam commented 4 years ago

Normally we show the total value in the last row right? Something like this.

Screen Shot 2020-01-04 at 9 16 31 PM

But the current component that I use does not scale as expected. That's why I'm moving to this BaseTable. Any suggestions? @nihgwu

nihgwu commented 4 years ago

I totally understand your use case, in that case you have to use two tables, but there would be visual problem with the horizontal scrollbar, here is how it behaves in our products https://blogs.autodesk.com/bim360-release-notes/2019/11/18/bim-360-cost-management-update-november-2019/

VigneshSubramaniam commented 4 years ago

I see. I sat through and wrote a footerRenderer to solve my use case and it's working fine. Scrollbar needs to be fixed though. But that's okay for now. Cheers!! :)

While i was playing around, i realised that all the columns are rendered and it's not the same behaviour as rows? It's reducing the performance :( Should I raise a separate issue or is that being implemented? @nihgwu

nihgwu commented 4 years ago

for columns virtualization, there is an issue already #36

danielwyb commented 3 years ago

@VigneshSubramaniam Could you explain how you implemented the custom footerRenderer? I'm trying to add support for frozen columns on the left and scrollable columns on the right, that stay in sync with the other columns as a footer.

mmahalwy commented 2 years ago

@danielwyb any luck with this?

danielwyb commented 2 years ago

Yes @mmahalwy. Did you find one or do you need input?

thenickbit commented 2 years ago

@danielwyb could you provide some info or gist on how you got this working? I'm trying to deal with the different widths of each column to align the footer elements