qgrid icon indicating copy to clipboard operation
qgrid copied to clipboard

fix: #315 - filters dont work and poorly displayed

Open ofirbit opened this issue 5 years ago • 7 comments

This fixes a severe bug in the filters, caused by a new version of jQuery (qgrid updated it's jQuery version when moved to Jupyter 2). The <i> tags must have a closing tag </i>, otherwise the dropdown element is rendered inside the <i> tag and causes severe bugs (the filter is floating with no background and also the text boxes, sliders and booleans are not clickable. This means the filter is useless).

Before my fix: image

After my fix: image

(and also all filters work great now)

Maintainer - can you please release a version after merging this? Thanks.

ofirbit avatar May 13 '20 16:05 ofirbit

I would really like to see this fixed because it limits the filtering to be nearly unusable. Is there some way I can help? Btw: tests fail because of https://github.com/quantopian/qgrid/issues/300

GaborDrescher avatar Jun 26 '20 12:06 GaborDrescher

I've also come across this issue today, are there any blockers to merging this?

dwurf avatar Nov 12 '20 09:11 dwurf

With this PR, all the filters except numerical look fine for me (shown below). Anybody have an idea? Actual filter display Expected filter should be something like this: Expected filter display

richardlin047 avatar Jan 05 '21 19:01 richardlin047

Adding this commit(https://github.com/richardlin047/qgrid/commit/19e76a1227195c5a300c826ca38d5e52369ca780) fixes the display issues with the numerical filter. The div was missing a closing tag.

Both my commit and ofirbit's commit are combined on this branch as a solution: https://github.com/quantopian/qgrid/compare/master...richardlin047:filter_fix

richardlin047 avatar Jan 07 '21 23:01 richardlin047

Hi @ofirbit ,

Just wondering if there is any workaround until changes are updated in newer version. I tried to edit same fields as in #315, but still didn't manage to get it going.

I recently moved to jupyter lab and it is kind of annoying not to be able to use filters of qgrid properly as in jupyter notebook.

Thanks.

EmilGuliyev avatar Mar 29 '21 22:03 EmilGuliyev

@EmilGuliyev you can try forking my branch https://github.com/richardlin047/qgrid/commits/filter_fix which includes some fixes on top of the ones by @ofirbit . If you just want to see the changes that were made (only a few lines), check them here: https://github.com/quantopian/qgrid/compare/master...richardlin047:filter_fix

As a head's up, Quantopian is no longer operating, so there will be no more updates to Qgrid

richardlin047 avatar Mar 30 '21 05:03 richardlin047

@richardlin047 , Thank you very much for your comments. I also changed those lines in src folder and seems to be working now. That is unfortunate that this project is not maintained by Quantopian anymore. I will check out your fork and it looks like you are actively maintaining it.

EmilGuliyev avatar Mar 30 '21 09:03 EmilGuliyev