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

Disappearing filter in last column #1957

Closed
britvik opened this issue Oct 2, 2017 · 12 comments
Closed

Disappearing filter in last column #1957

britvik opened this issue Oct 2, 2017 · 12 comments

Comments

@britvik
Copy link

britvik commented Oct 2, 2017

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/ceolter/ag-grid/blob/master/CONTRIBUTING.md#question

Current behavior
Popup filter disappears if used in last column and number of filtered rows is lower than max number of visible renderable rows after filtering (simply put -> vertical scrollbar disappears after filtering + popup filter disappears too).

Expected behavior
Filter should stay opened after filtering.

Minimal reproduction of the problem with instructions

  1. https://www.ag-grid.com/example.php
  2. Scroll horizontally to the last column (scrollbar must be completely at the end)
  3. Open filter popup
  4. Input value that matches no (or few) rows
  5. Filter now disappeared :-(

Please tell us about your environment:

  • ag-Grid version: 13.2.0

  • Browser:
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

  • Language: [all]

@rmc-software
Copy link
Contributor

rmc-software commented Oct 6, 2017

Closing as this can't be reproduced in latest version: 13.3.1. Tried both Chrome and Safari.

@britvik
Copy link
Author

britvik commented Oct 6, 2017

@rmc-software I'm sorry but the bug is still there :( (v13.3.1). Maybe my explanation was incomprehensible, sorry about that. I made a video which shows the bug:
ag-grid-filter-bug

@rmc-software rmc-software reopened this Oct 6, 2017
@rmc-software
Copy link
Contributor

Reopened. Thanks for the follow up with the video.

I have created AG-890 to track this and we'll provide updates here once we have them.

@britvik
Copy link
Author

britvik commented Oct 6, 2017

No problem. Should have made a video in the first place. It explains it much better. No stress though, it's just a minor issue and should have a low priority. Thanks for looking into it.

@rmc-software
Copy link
Contributor

Hi,

We can't reproduce this in v14. Are you still seeing this issue. If so could you provide more detail regarding environment.

Thanks

@britvik
Copy link
Author

britvik commented Nov 22, 2017

@rmc-software Unfortunately the bug is still there. It's reproducible in ag-grid demo page. I'm using the newest version of Chrome to test this.
You need to scroll all the way to the last column and filter only few rows => vertical scrollbar and filter disappears. If you use filter again (and show more/all rows) and then filter only few rows again, the filter won't disappear - because the horizontal scrollbar is not all the way at the end. But if you move the scroll, then filter will disappear again.

@makinggoodsoftware
Copy link
Contributor

I just tried this

open demo
scroll far right
filter dec > 70000
filter dec > 7000
filter dec > 70000

It all worked fine...

Does this work for you?

@britvik
Copy link
Author

britvik commented Dec 19, 2017

@makinggoodsoftware nope, bug is still there. Maybe you have smaller screen resolution or console open? I tried the scenario on smaller browser window and it worked fine. But on big screen the filter disappears. The only difference I noticed is that on big screen the number of filtered rows fits on "one screen" so scrollbar disappears. On smaller screen the scrollbar remained.

@patryk-beekeeper
Copy link

Hello,

I have experienced similar issue with my application. It seems that custom floating filters are re initialized why scrolling horizontally away and back.

I changed your Angular Floating Filters plunker a little bit to demonstrate this:
https://plnkr.co/edit/lPsS36mDQG22dWDH1lKJ

Current behavior
Custom floating filters are reset after horizontally scrolling back to them.

Expected behavior
Filters should stay unchanged after scrolling.

Minimal reproduction of the problem with instructions

  1. Open provided plunker: https://plnkr.co/edit/lPsS36mDQG22dWDH1lKJ
  2. Set filter value on Gold column. For example set filter to 4 to have 4 rows displayed in the table.
  3. Scroll horizontally to the right (to Bronze Column) - you should not see Gold column anymore.
  4. Scroll back to Gold column.
  5. Filter on Gold column is reset. All rows are displayed in the table (39 rows).
  6. Check console logs. The agInit() on SliderFloatingFilter was called agin while scrolling back to Gold column.

If you are unable to reproduce this issue, please increase the width of Silver and Bronze columns.

Please tell us about your environment:

ag-Grid version: 15.0.0

Browsers:
Firefox, Chrome

@patryk-beekeeper
Copy link

Any progress on that? It seems to be very major issue and is observed in aggrid since at least 13.0.0.

@makinggoodsoftware
Copy link
Contributor

Hi,

In ag-grid we have recently started processing github issues as well as customer issues. We are also going through the backlog of issues already open and acting on them as necessary, on this particular case, it seems like this issue could be gone in our latest release.

Could you update the ag-grid version in your end and try again?

Note that this issue is getting closed, but you are welcomed to create a new issue if you think this issue is still not resolved

@gelevanog
Copy link

try set suppressColumnVirtualisation to true.

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

5 participants