#aggridreact being weird

1 messages · Page 1 of 1 (latest)

light ridge
#

cant reproduce this issue anywhere, but my aggrid checkbox selection is dodgy
the checkbox in the header is just not functional whatsoever, but everything else works fine

worth raising an issue on their github or has anyone else had this happen to them?

#
    const colDefs: ColDef<Order>[] = [
        {
            headerCheckboxSelection: true, // Enable checkbox selection for header
            checkboxSelection: true, // Enable checkbox selection for each row
            width: 50, // Set width for checkbox column
            suppressMovable: true
        },
        { ... },
        { ... },
    ]
            <AgGridReact
                columnDefs={colDefs}
                rowData={orders}
                rowSelection='multiple' // Enables multiple row selection
                onGridReady={(params) => { params.api.sizeColumnsToFit(); }}
                onGridSizeChanged={(params) => { params.api.sizeColumnsToFit();}}
                onCellClicked={(e) => {
                    if (e.colDef.headerName && e.colDef.headerName !== 'Actions') {
                        setClickedOrder(e.data); // state
                    }
                }}
            />