angular icon indicating copy to clipboard operation
angular copied to clipboard

Hide and show of row groups is not working in Datagrid.

Open sudheerReddy9047 opened this issue 3 years ago • 0 comments

Environment

Please provide as many details as you can:

  • Hosting type

    • Form.io
  • Formio.js version: 4.13.1

  • Frontend framework: Angular 11

  • Browser: Chrome

  • Browser version: 99.0.4844.82

Steps to Reproduce

  1. Drag and drop a data grid component.
  2. Enable row grouping and groups with row number to it. Enable Hide Group on Header Click.
  3. Drag and drop components inside data grid.

Expected behavior

On click of each group header label, it is expected all the rows under that group will be hidden and on another click, rows will be shown.

Observed behavior

On click of group header label, there is no change in display of rows. Only the icon changes from down to right and vice-versa

Example

image image

{ "label": "Data Grid", "disableAddingRemovingRows": true, "reorder": false, "addAnotherPosition": "bottom", "layoutFixed": false, "enableRowGroups": true, "initEmpty": false, "tableView": false, "defaultValue": [ { "bBatchNoB": "", "bBatchNoB6": "", "select": "", "date1": "", "date2": "", "bBatchNoB2": "", "bBatchNoB3": "", "bBatchNoB4": {}, "bBatchNoB5": "" } ], "key": "dataGrid", "type": "datagrid", "rowGroups": [ { "label": "G1", "numberOfRows": 4 }, { "label": "G2", "numberOfRows": 2 }, { "label": "G3", "numberOfRows": 4 } ], "groupToggle": true, "input": true, "components": [ { "label": "<b>Batch No</b>", "customClass": "w-150px", "tableView": true, "clearOnHide": false, "key": "bBatchNoB", "customConditional": "show = true;", "type": "textfield", "properties": { "manual_entry": "true" }, "input": true } ] }

sudheerReddy9047 avatar Mar 27 '22 08:03 sudheerReddy9047