windmill icon indicating copy to clipboard operation
windmill copied to clipboard

How do I add a selection box to an aggrid table to select a record instead of clicking on a row?

Open sx98083714 opened this issue 1 year ago • 4 comments

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?

sx98083714 avatar Oct 30 '24 03:10 sx98083714

Such a powerful and useful product, isn't it? Why do so few people communicate with each other?

sx98083714 avatar Oct 30 '24 05:10 sx98083714

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).

paulsoning avatar Feb 19 '25 18:02 paulsoning

Did someone find a solution to apply this Config?

simon-innovamaxx avatar Mar 22 '25 20:03 simon-innovamaxx

@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

paulsoning avatar Apr 03 '25 07:04 paulsoning