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

Sticky footer row(s) #78

Open
minorbug opened this issue Aug 10, 2010 · 51 comments
Open

Sticky footer row(s) #78

minorbug opened this issue Aug 10, 2010 · 51 comments

Comments

@minorbug
Copy link
Contributor

Have a way to define the last x rows of data to be "sticky", like the header, so they are always visible. This will be useful for projects that have calculated column totals that must be always visible.

@andrewchilds
Copy link
Contributor

This is unfortunately a showstopper for me. I need to either hack support for a "totals" row myself or try using jqGrid, which supports a "summary" row. But I'd much rather use SlickGrid.

@mleibman
Copy link
Owner

I have added fixed header row recently... just need to do that same for the footer.

@andrewchilds
Copy link
Contributor

Hey Michael, sorry I should've updated this ticket - I added support for fixed header/footer rows in my fork in October, though it alters the Slick.Grid signature to (container,data,columns,options,totals) as I wanted to be able to define the values of the "totals" row apart from the data, vs. the original issue request which was take the last x rows of data and make them the footer. I have an example page at https://github.com/andrewchilds/SlickGrid/blob/master/examples/example15-totals.html

@mleibman
Copy link
Owner

mleibman commented Jan 4, 2011

Yes, I remember looking that code over. The reason that approach didn't work for me was that it was static and did not allow any manipulation of the DOM or underlying data which is a must.

@dcendents
Copy link

I'm starting to use SlickGrid 1.4.3, and using the example-header-row, I've copied some code from 2.0a1 to use the secondary header row as a "total row".

I'd rather have it at the bottom, so I'm all for this new feature!

@dcendents
Copy link

In fact I just moved the header row after the $viewport (Still using 1.4.3) and now it shows at the bottom.

I have some javascript to change the cell content when a row is modified (I use it as a total row).

I used the following example: http://mleibman.github.com/SlickGrid/examples/example-header-row.html to get started and borrowed some code from 2.0a1

@andrefaria
Copy link

It's fixed footer going to be officially supported?

@CoffeeJerk
Copy link

I need this feature as well. Currently we hack together two grids to do it, sure would be nice to do it with one.

@dholcombe
Copy link

Voting this feature request up by commenting...

@jeremykendall
Copy link

Bump, +1.

@appublic
Copy link

Another bump, +1

@fourcolors
Copy link

I would like a fixed "row header" too. We have a use case where we need a both fixed column and row header. Will this support this?

@mleibman
Copy link
Owner

SlickGrid already has a fixed header row.

On Thu, Sep 20, 2012 at 12:31 PM, Sterling Cobb notifications@gitpro.ttaallkk.topwrote:

I would like a fixed "row header" too. We have a use case where we need a
both fixed column and row header. Will this support this?


Reply to this email directly or view it on GitHubhttps://github.com//issues/78#issuecomment-8742672.

@fourcolors
Copy link

@mleibman Currently this example http://mleibman.github.com/SlickGrid/examples/example-header-row.html has a fixed column header however we are looking for the first columns rows to be fixed so we can scroll left to right and keep a column always visible on the left side of the grid.

Is this possible?

@mleibman
Copy link
Owner

That functionality is called "fixed columns" or "frozen columns" and is not
available yet.

On Wed, Sep 26, 2012 at 10:16 AM, Sterling Cobb notifications@gitpro.ttaallkk.topwrote:

@mleibman https://github.com/mleibman Currently this example
http://mleibman.github.com/SlickGrid/examples/example-header-row.html has
a fixed column header however we are looking for the first columns rows to
be fixed so we can scroll left to right and keep a column always visible on
the left side of the grid.

Is this possible?


Reply to this email directly or view it on GitHubhttps://github.com//issues/78#issuecomment-8897618.

@natofsky
Copy link

Is fixed footer still on the todo list?

@antonioedirane
Copy link

Bump, +1.

@mleibman
Copy link
Owner

Yes :)

@douglasgrava
Copy link

Bump, +1.

@Mukaram
Copy link

Mukaram commented Mar 7, 2013

Yes please. Bump, +1

@DaHoopster
Copy link

Yes, bump +1

@oldtinroof
Copy link

Yes please! +1

@ticaboo
Copy link

ticaboo commented Mar 28, 2013

bump bump bump 3 years on. +1

@FnTm
Copy link

FnTm commented Apr 11, 2013

Yes please, +1!

@terrychentc
Copy link

Please, +5

@schalivendri
Copy link

+1, ETA?

@viveks-m
Copy link

+1 Please

@konrade
Copy link

konrade commented May 20, 2013

Yes please, +1

@mleibman
Copy link
Owner

Which feature are you guys +1'ing? Freezing n bottom rows, or having a fixed footer row like in http://mleibman.github.com/SlickGrid/examples/example-header-row.html? If it is the former, it's not going to get implemented. In case of the latter, can you give me an actual use case for it? It just seems that most people want it for a totals row, for which it is a really really bad implementation. For totals, you should implement a data provider similar to how DataView does it. That way, the totals row will be an actual normal row that is a part of the grid as opposed to a dumb container that you have to manipulate manually.

@mleibman
Copy link
Owner

Please chime in.

@jeremykendall
Copy link

My +1 was for

having a fixed footer row like in http://mleibman.github.com/SlickGrid/examples/example-header-row.html?

It's been a while since I've worked on the project that prompted my +1, but I remember having trouble creating a fixed totals row using a data provider.

Would you be willing to provide a specific example of a fixed footer row providing column totals using a data provider? That would probably close this out and kill all the +1s.

@schalivendri
Copy link

My +1 was for having a fixed footer row like in
http://mleibman.github.com/SlickGrid/examples/example-header-row.html

@DaHoopster
Copy link

My +1 was for having a fixed footer row like in

http://mleibman.github.com/SlickGrid/examples/example-header-row.html

@JonBons
Copy link

JonBons commented Jul 11, 2013

I worked on a footer totals plugin that I don't have time to maintain anymore.
I'm not great at JS but I needed it for a specific project so I got it done...

https://github.com/JonBons/SlickGrid
Example:
http://vps.mattgraham.me/slickgrid/examples/example-plugin-summaryfooters.html

@schalivendri
Copy link

@JonBons There is an issue with column resize, the total columns doesn't align properly with grid column

@jeremykendall
Copy link

@mleibman Awesome. Will you be posting it along with the other examples so we can see it in action?

@mleibman
Copy link
Owner

Yep, just pushed the gh-pages and updated the wiki - http://mleibman.github.io/SlickGrid/examples/example-totals-via-data-provider.html.

@jeremykendall
Copy link

@mleibman That, sir, is precisely what I was looking for. Thanks!

@pgbakker
Copy link

Tnx for that example @mleibman. However, what we're interested in is more the implementation @JonBons has done, with the totals in a footer below the grid, so the totals remain in view when you have more rows than fit in the viewport.

@schalivendri: I don't see what you're seeing, they seem to be aligning just fine
@JonBons: if the combined width of the columns don't fit the viewport and the user scrolls to the right, the footer doesn't scroll with the rest of the grid, so the columns don't align anymore

@pgbakker
Copy link

@JonBons Also like your other addition: http://vps.mattgraham.me/slickgrid/examples/example-plugin-summaryfooters-grouping.html. However, if I filter the records displayed using the slider, the totals in the footer do not update

@schalivendri
Copy link

@pgbakker: When the columns widths is increased to more than the viewport width, the horizontal scrollbar appears only for viewport. If you try to scroll to right, you will see the alignment issue.

@pgbakker
Copy link

@schalivendri ok, yes, that is what I'm seeing as well. Thought you meant that they weren't lined up initially

@JonBons
Copy link

JonBons commented Aug 2, 2013

@pgbakker I have fixed the issue with the totals not updating when using the slider and when groups are collapsed: http://vps.mattgraham.me/slickgrid/examples/example-plugin-summaryfooters-grouping.html

If you have not messed with it yet, there is draggable groupby support in that example.

The issue with the scrolling is a little more complex; I believe it is caused by the fact that the summary footer html is outside of the grid and all the manipulative stuff is being done to just the grid html. I'll have to figure out how to get the Summary Footer reacting to the events the grid is throwing and figure out how to handle that.

If anyone has any idea's I'd love them.

@schalivendri
Copy link

@JonBons I am listening to 'onColumnsResized' event on grid and resizing all columns in summary footer. This is working, but I am looking for a better solution.

@martin0258
Copy link

For those who wants a fixed total row, I found a plugin slickgrid-totals-plugin.
Sadly, I cannot make it work (without error).

@BomanIrani
Copy link

@martin0258 To use slickgrid-totals-plugin (https://github.com/paynen/slickgrid-totals-plugin) you need to use an earlier version of SlickGrid. Note that it'll still be broken in FF, but works great in Chrome and Safari.

@ddomingues
Copy link

Hi! I implemented this and others features on my fork: https://github.com/ddomingues/X-SlickGrid ! Take a look http://ddomingues.com/X-SlickGrid/liveDemo/examples/example-group-header.html

@gkostov
Copy link

gkostov commented Mar 9, 2015

@mleibman mentioned "just need to do that same for the footer" so I believe #1054 is exactly what the footer is supposed to be ;-)

@marbetschar
Copy link

@mleibman will @gkostov 's change be merged into SlickGrid? Since I got the same use case over here.

@xerenade
Copy link

+1 for merge @gkostov 's change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests