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
It seems that 'expand/collapse' state of childs are not saved beetween data modifications/filtering/etc with griddle+subgrids.
So, for example, we have some hierarchical data, user expand some parent rows. Then data update is triggered - grid rerenders, all parent rows resets to 'collapsed' state.
The same story with filtering, please take a look at example: http://jsfiddle.net/zcpf1gfs/
How to reproduce (using jsfiddle above):
open dev console;
expand all/some rows;
start typing in 'Filter' box, for example: "Child".
Actual result: all parent rows collapse, error thrown ("Invariant Violation: findComponentRoot(..., .0.1.2.0.0.0.3.0.0.0.0.1.0): Unable to find element...")
Am I right or just missed some configuration options? If so, can we have some fix or workaround for this? Maybe the #104 is the reason?
Thanks in advance and best regards, really appreciate your work with Griddle.
The text was updated successfully, but these errors were encountered:
I know this is an year old but if some one is still looking for answer, this is how I implemented it.
In griddle.jsx.js, while creating GridTable, add this prop to
that list on line 836: resultsFromFilter: !this.isNullOrUndefined(this.state.filteredResults)
In gridTable.jsx.js, add "resultsFromFilter": false to default pass down resultFromFilter prop while creating GridRowContainer on line 180: resultsFromFilter: that.props.resultsFromFilter
In gridRowContainer.jsx.js, add resultsFromFilter: false to list of default props and add this function to component. componentDidMount(){this.setState({showChildren:this.props.resultsFromFilter})}.
This will ensure that when ever the sub grid matches the result comes out as un-collapsed.
Hello,
It seems that 'expand/collapse' state of childs are not saved beetween data modifications/filtering/etc with griddle+subgrids.
So, for example, we have some hierarchical data, user expand some parent rows. Then data update is triggered - grid rerenders, all parent rows resets to 'collapsed' state.
The same story with filtering, please take a look at example: http://jsfiddle.net/zcpf1gfs/
How to reproduce (using jsfiddle above):
Actual result: all parent rows collapse, error thrown ("Invariant Violation: findComponentRoot(..., .0.1.2.0.0.0.3.0.0.0.0.1.0): Unable to find element...")
Am I right or just missed some configuration options? If so, can we have some fix or workaround for this? Maybe the #104 is the reason?
Thanks in advance and best regards, really appreciate your work with Griddle.
The text was updated successfully, but these errors were encountered: