# Preserving Filtered Data in AG Grid and Efficient Data Sharing Between Pages in Dash

**URL:** <https://community.plotly.com/t/preserving-filtered-data-in-ag-grid-and-efficient-data-sharing-between-pages-in-dash/81006>\
**Category:** Dash Python\
**Tags:** question, dash-online-course\
**Created:** [December 18, 2023, 2:04pm UTC](https://community.plotly.com/t/preserving-filtered-data-in-ag-grid-and-efficient-data-sharing-between-pages-in-dash/81006 "2023-12-18T14:04:02Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Emil](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/emil/32/31734_2.png) [@Emil](https://community.plotly.com/u/Emil)\
**Post date:** [December 18, 2023, 9:26pm UTC](https://community.plotly.com/t/preserving-filtered-data-in-ag-grid-and-efficient-data-sharing-between-pages-in-dash/81006/6 "2023-12-18T21:26:27Z")

</div>

There are many ways to do it. Using `dash-extensions`, you just place the dynamic component container similar to the page container,

```auto
from dash import dash, Dash, html
from dash_extensions.pages import setup_dynamic_components

app = Dash(use_pages=True)
app.layout = html.Div(
    children=[
        dash.page_container,
        setup_dynamic_components(),
    ]
)

if __name__ == " __main__":
    app.run_server()

```

and then register the dynamic components on the pages where they should be visible,

```auto
from dash import html, register_page
from ... import complex_table

register_page(
    __name__ ,
    path="/",
    dynamic_components=[complex_table]
)

def layout():
    return html.Div("Welcome home!")

```

The complex table will now appear below the greeting on the welcome page (as well as on any other page, where it is registered).

Does that make sense? 🙂

---

_[View the full topic](https://community.plotly.com/t/preserving-filtered-data-in-ag-grid-and-efficient-data-sharing-between-pages-in-dash/81006)._
