Hi
I want a small clarification on one of the use case related to IgrDataGrid (https://es.infragistics.com/products/ignite-ui-react/react/components/grids/data-grid/overview).
On this sample https://github.com/IgniteUI/igniteui-react-examples/tree/master/samples/grids/data-grid/overview
I have done the following changes
as I have set the isGroupExpandedDefault={false} , still the groups are Expanded by default.
So, for this I need to know how can I set the groups collapsed by default.
Hoping for a positive response.
Thanks!!!
Hello Shubham,
I have been investigating into the behavior you are seeing, and this appears to be happening due to a line of code in the onGridRef method of the grid’s overview sample:
this.grid.actualDataSource.isSectionExpandedDefault = true;
This will override the isGroupExpandedDefault = {false} set on the grid. If you remove this line of code, the groups should not be expanded by default. I will be checking with my colleagues to see if this line of code was intentionally checked in and if not, I will be removing it for a future version.
Please let me know if you have any other questions or concerns on this matter.