Table : Fixed columns and rows

Is it possible to have a fixed leading/trailing column on a table? DItto for rows?

I suspect not… but it can often be a useful thing to have.

A fixed leading column can be useful if you have a table with many columns, which would force a horizontal scroll - lets say a list of clients, with a column per month of statistics over a year. Scrolling horizontally means you would lose the name of the client.

A fixed trailing column can be useful if you have a list with columns representing balances/counts. A trailing column could then show the totals of the row.

A fixed trailing row is very useful for totals of columns. A fixed leading row you already have - they contain the the column headers :glare:

If, as I suspect, this is not currently possible, could this please be considered a feature request?

In order of importance, I would say

  • Fixed leading column
  • Fixed trailing row (aka table footer)
  • Fixed trailing column

Fixed meaning that they are always visible, and not affected by scrolling.

Al, I would suggest that if this feature is considered, when designing this, consider allowing more than one fixed column/row - as I suspect it is no more difficult than doing just one, and also be handy (e.g. 2 fixed leading columns showing client name and client number. Of course, it could be a single generated column - but then it would be hard if not impossible for the constituent elements/components of the single generated column to line up)

Something like table.setFirstScrollingColumn/setLastScrollingColumn could work.

Cheers,

Charles.

Hi,

There is a ticket about fixed leading columns (
http://dev.vaadin.com/ticket/3087
) and another one about footers (
http://dev.vaadin.com/ticket/3045
). I don’t know when/if they will be implemented.

The fixed trailing column is a new feature though, could you please create a ticket about it?

Hi,

I think #3087 would/could also cover trailing columns - the ticket doesn’t specify where those fixed panes should. In practice, I can’t imagine that you’d want anything other than frozen leading/trailing columns (the UI for freezing the central column would be most confusing, and anyway, it could be simulated with two tables).

#3045 is rather more simple than I was suggesting - it proposes a plain single label/component at the bottom of the component, as you see on panels.

A fixed row would actually be just that, a row with columns like all of the other rows, that represents an item. Where that row comes from would be a moot point - should it be the last item in the container? or should it be explicitly specified separately?

Hi,

Yeah, I linked a wrong ticket about the footer feature, sorry. I meant
http://dev.vaadin.com/ticket/1553
.

Also take a look at this thread:
http://vaadin.com/forum/-/message_boards/message/50338
.

Hi All,

I have a rquirement like this in Table component Header part all the columns need to show a check box, but my case is on user clicks on Header part i am showing a popup window, so user can’t feel good whether he has to click Header or Checkbox, so i approach in that way like is i make it first row few columns has checkboxes, but i have to fixed that first row has a freeze user cant scroll down from first row. Please let me know can we achieve through vaadin or css?