You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to use the DatagridConfigurable component from the docs https://marmelab.com/react-admin/Datagrid.html under Showing / Hiding Columns but it's removing the filters I've already configured. The docs suggest that both filters and actions should be compatible. I'm using the ra-data-graphql-simple library to provide data.
What you were expecting:
DatagridConfigurable to display both the SelectColumnsButton and Add Filter sections.
What happened instead:
Adding SelectColumnsButton and DatagridConfigurable added an option to select columns but removed the Add Filter section.
The search bar defined in the filters still displays and works.
Related code:
importReactfrom'react';import{List,DatagridConfigurable,TextField,TextInput,NumberInput,TopToolbar,SelectColumnsButton}from'react-admin';constuserFilters=[<TextInputlabel="Search by Email"source="q"alwaysOn/>,<NumberInputlabel="id"source="id"/>,];constUserListActions=()=>(<TopToolbar><SelectColumnsButton/></TopToolbar>);exportconstUserList=(props: any)=>{return(<List{...props}actions={<UserListActions/>}filters={userFilters}><DatagridConfigurablebulkActionButtons={false}><TextFieldsource="id"sortable={false}/><TextFieldsource="email"/></DatagridConfigurable></List>);};
I've tried to use the
DatagridConfigurable
component from the docs https://marmelab.com/react-admin/Datagrid.html underShowing / Hiding Columns
but it's removing the filters I've already configured. The docs suggest that both filters and actions should be compatible. I'm using thera-data-graphql-simple
library to provide data.What you were expecting:
DatagridConfigurable to display both the
SelectColumnsButton
andAdd Filter
sections.What happened instead:
Adding
SelectColumnsButton
andDatagridConfigurable
added an option to select columns but removed theAdd Filter
section.The search bar defined in the filters still displays and works.
Related code:
Library versions
The text was updated successfully, but these errors were encountered: