Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
Facing issue with IgrDataGrid while using isGroupExpandedDefault property.
posted

Hi

I want a small clarification on one of the use case related to IgrDataGrid (https://www.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 

                    summaryScope="both"
                    groupHeaderDisplayMode="Split"
                    groupSummaryDisplayMode="list"
                    isGroupExpandedDefault={false}

 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!!!

Parents
No Data
Reply
  • 34430
    Offline posted

    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.

Children
No Data