Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

filtering=True doesn't work unconnected (no callback) #202

Closed
cldougl opened this issue Nov 2, 2018 · 10 comments
Closed

filtering=True doesn't work unconnected (no callback) #202

cldougl opened this issue Nov 2, 2018 · 10 comments
Labels
dash-type-bug Something isn't working as intended

Comments

@cldougl
Copy link
Member

cldougl commented Nov 2, 2018

filtering=True doesn't seem to be working in doc examples:

https://github.com/plotly/dash-docs/blob/master/tutorial/examples/table/interactivity_simple.py

filter

@cldougl cldougl added the dash-type-bug Something isn't working as intended label Nov 2, 2018
@cldougl cldougl changed the title filtering=True not working filtering=True doesn't work unconnected (no callback) Nov 2, 2018
@chriddyp
Copy link
Member

chriddyp commented Nov 2, 2018

Once this is fixed, lets add these examples back to the docs https://github.com/plotly/dash-docs/commit/82954795ddedb31ddffa4dfa6665bf387969c11d

@notatallshaw
Copy link

This bug also for other options such as sorting, correct? I can not get the to work unless I connect then to a call back.

@kummerer94
Copy link

kummerer94 commented Nov 7, 2018

+1

I am having the same problem. I am just using the Quickstart example from the docs where I add sorting=True or filtering=True (https://dash.plot.ly/datatable) and am not able to sort or filter anything (it will not react to any input on my side).

@chriddyp
Copy link
Member

chriddyp commented Nov 7, 2018

Yup. For now, just connect it to a dummy callback (e.g. use the data_timestamp as an Input)

@chirayu11

This comment has been minimized.

@notatallshaw
Copy link

notatallshaw commented Nov 14, 2018

I can also reproduce this issue if the first callback raises PreventUpdate, e.g.:

if data is None:
    raise PreventUpdate

Even if the callback has a response after the first callback doesn't seem to matter anymore.

@Marc-Andre-Rivet
Copy link
Contributor

The underlying issue seems to be plotly/dash-renderer#98

@cldougl
Copy link
Member Author

cldougl commented Dec 6, 2018

This has been fixed in version 3.1.8

@cldougl cldougl closed this as completed Dec 6, 2018
@gorrinfr
Copy link

gorrinfr commented Jun 3, 2019

Hi all. I am using dash=0.41.0, dash_table=3.6.0 and dash_renderer=0.22.0. I am copying exactly the first example from https://dash.plot.ly/datatable/interactivity. Filtering is not working for me (though sorting is working fine). If I understand correctly, both sorting and filtering should work here because the example contains a callback on a table property? If not, then please can someone provide a code example where filtering is working for them or any other clues to help me diagnose what's going wrong on my side? Many thanks and please let me know if you need any more info.

@gorrinfr
Copy link

gorrinfr commented Jun 3, 2019

I apologise, I was using the wrong syntax for filtering. I found this post (#169 (comment)) which explained the filtering syntax I'd need to use.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dash-type-bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

7 participants