ui5-webcomponents-react icon indicating copy to clipboard operation
ui5-webcomponents-react copied to clipboard

Sticky columns for Analytical Table

Open gurkirpalgill opened this issue 5 years ago • 17 comments

Option to configure first two columns as sticky When user scrolls the Analytical table columns horizontally, is it possible to configure first two column as sticky i.e. they are always visible. e.g.

Screen Shot 2020-06-09 at 11 45 41 PM

gurkirpalgill avatar Jun 10 '20 06:06 gurkirpalgill

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Inactive issues will be closed after 30 days. Thanks.

github-actions[bot] avatar Oct 08 '20 01:10 github-actions[bot]

Hello! Could please consider this feature in the upcoming releases? Would be much appreciated. Since we wildly use AnalyticalTable and dont' want to replace it with, say, react-table wrapped with react-table-hoc-fixed-columns HOC.

Thank you!

art-zhiltsoff avatar Mar 26 '21 11:03 art-zhiltsoff

Hi! @MarcusNotheis Was there any update on this? I see the todo tag has been removed, so I'm wondering. Thank you in advance for the help!

sieunjang avatar Aug 12 '21 23:08 sieunjang

Hey @sieunjang,

this feature request is still on our roadmap. The todo label was only a helper label, so that our stale issue bot is not closing issue. In the meantime we changed the config of our stale issue bot, that's why the todo label was removed.

Apart from that, I think that we will require some more time for this issue, we had tried to implement sticky columns with our current approach but it was really hacky and not performing well. We heard that new version (v8) the underlying react-table library might support sticky columns, so we're currently waiting for a new release there. (we don't have any ETA for the release of react-table).

MarcusNotheis avatar Aug 13 '21 05:08 MarcusNotheis

Thanks for the quick response @MarcusNotheis! That makes sense.

Since, we're on the topic of sticky elements, is there a plan to implement sticky rows by any chance? I had looked into making the first row sticky inside an Analytical Table, but I noticed this below:

https://user-images.githubusercontent.com/46455259/129391839-23c39fb2-9c41-4db3-bf43-726eca334323.mov

The table I'm showing in my video is from here. I saw that the first row with aria-rowindw="0" disappears as I scroll down. So, my attempt to make the first row sticky with css properties wasn't successful because I'm also implementing infinite scrolling (and the table has a fixed height).

Or is there a way to make the first row sticky with a different solution? If you have any insight to share, please let me know! Thank you :)

sieunjang avatar Aug 13 '21 17:08 sieunjang

Hi! @MarcusNotheis Was there any update on this? Thank You!

gagarin880120 avatar Jun 06 '22 08:06 gagarin880120

Hi @MarcusNotheis, Any updates on this sticky column as when it would be available? If it's still not in the near future, are there any other workarounds possible?

Best Regards, Raghav

I506645 avatar Dec 22 '22 10:12 I506645

Hi all,

sorry for the delayed response time. We had an internal discussion about this topic and unfortunately we don't find it practical adding sticky behavior to the current implementation of the table. We looked at different ways to implement it, but it always had too many downsides, mostly related to performance, but also the overhead and complexity that this feature would add to the table would be too excessive.

We're planning to build a new table, with a more modular approach though. I can't promise anything yet, but sticky behavior is on top of the list for this table. Right now we don't have a roadmap, but we'll try to get it started this quarter.

And don't worry, the current AnalyticalTable will still be available even after we released the new one ;)

Lukas742 avatar Jan 03 '23 11:01 Lukas742

@Lukas742 do you have any updates on this, that you can share with us?

MadSandwich avatar May 04 '23 09:05 MadSandwich

Hi @MadSandwich

unfortunately not, once we start working on this, we will move this from "Future" in our Roadmap to the appropriate quarter in which we plan to complete the implementation.

Lukas742 avatar May 05 '23 09:05 Lukas742

Hi. Tanstack-React-Table V8 has been out there for some time now. why is ui5-react still von V7? V8 would support sticky/pinned columns pretty easily it seems https://tanstack.com/table/v8/docs/examples/react/column-pinning

cproinger avatar Jul 14 '23 14:07 cproinger

Hi @cproinger

The API of v7 and v8 is not compatible and migration is not really feasible due to the complexity of the component.

Lukas742 avatar Jul 14 '23 14:07 Lukas742