How do I add a selection box to an aggrid table to select a record instead of clicking on a row?
I want to add a check box before each row in the aggrid table and select by clicking on the check box instead of clicking on the row,
After reviewing the aggrid usage documentation, I tried to add the following configuration in extra config, but unfortunately, it didn't work.
{ "defaultColDef": { "flex": 1, "minWidth": 100 }, "rowSelection": { "mode": "multiRow", "checkboxes": true, "headerCheckbox": true, "enableClickSelection": true, "selectAll": "filtered" } }
I have turned off the options that may conflict in the properties of the windmill aggrid table, but it still cannot take effect. There are not many places that aggrid can customize at present, but it is a pity that this only place cannot take effect, who can tell me what I should do?
Such a powerful and useful product, isn't it? Why do so few people communicate with each other?
Windmill supports Ag-Grid versions up to 31.3.4.
For detailed information on row selection, refer to the Ag-Grid documentation: Ag-Grid Row Selection (v31.3.4).
Did someone find a solution to apply this Config?
@simon-innovamaxx put this into the column definition in raw mode:
{
"flex": 1,
"sort": null,
"field": "username",
"headerName": "username",
"valueFormatter": null,
"cellRendererType": "text",
"checkboxSelection": true,
"headerCheckboxSelection": true
}
then turn off Row Multiselect With Click and turn on Multiple Selectable