Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tabulator header filter does not work with row_content #5095

Closed
SKlerk opened this issue Jun 12, 2023 · 2 comments
Closed

Tabulator header filter does not work with row_content #5095

SKlerk opened this issue Jun 12, 2023 · 2 comments
Labels
component: tabulator Related to the Tabulator widget
Milestone

Comments

@SKlerk
Copy link

SKlerk commented Jun 12, 2023

Using the header filters in tabulator and then trying to expand the row gives an error for seemingly all rows except at index 0. The issue is very simple to reproduce:

import panel as pn
import pandas as pd
pn.extension('tabulator')
df = pd.util.testing.makeMixedDataFrame()
def _row_content(e):
    return pn.Column("Hello!")
tab = pn.widgets.Tabulator(df, row_content=_row_content, header_filters=True)

pn.Column(tab).servable()

bug

@maximlt maximlt added component: tabulator Related to the Tabulator widget type: bug labels Nov 14, 2023
@philippjfr philippjfr added this to the v1.4.0 milestone Nov 29, 2023
@philippjfr philippjfr modified the milestones: v1.4.0, v1.4.x Mar 13, 2024
@nicolazarte
Copy link

Also, to provide some guide, when you open some row contents (for example in row nº 1 and nº 3) and then filter with the headers, the new filtered data is shown with its row contents already opened in the same numbers (nº 1 and 3).

@philippjfr
Copy link
Member

Appreciate the nice reproducer. It was very helpful in fixing this. Between #7103 and #7133 this is now resolved.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
component: tabulator Related to the Tabulator widget
Projects
None yet
Development

No branches or pull requests

4 participants