devextreme-reactive icon indicating copy to clipboard operation
devextreme-reactive copied to clipboard

Summary row alignment issues with grouping and detail plugins.

Open hayarza opened this issue 6 years ago • 2 comments

  • [x] I have searched this repository's issues and believe that this is not a duplicate.

I'm using ...

  • [x] React Grid
  • [ ] React Chart
  • [ ] React Scheduler

Current Behaviour

When introducing RowDetailState and TableRowDetail Then TableSummaryRow will misalign columns. Assuming that your groupItems for SummaryState have these params showInGroupFooter: false, alignByColumn: true

Expected Behaviour

Alignment by column parameter is respected

Steps to Reproduce

Link to the example that reproduces the issue: CodeSandbox

Screenshots

image image

Environment

  • devextreme-reactive: 2.7.2
  • react: 16.13.1
  • browser: Chrome 86.0.4240.111
  • material-ui: 4.11.0

hayarza avatar Nov 03 '20 00:11 hayarza

Hi @hayarza,

Thank you for reporting this problem. We will fix this soon. As workaround, I suggest that you place the TableRowDetail plugin before the TableGroupRow one. Here is the updated example.

LazyLahtak avatar Nov 03 '20 13:11 LazyLahtak

Hi @LazyLahtak I find in your example , if I set const [grouping] = useState([{ columnName: "region" }]); to const [grouping] = useState([{ columnName: "amount" }]); which amount column is alignByColumn:true, the question remains. image

Here is example I updated. Or is it not recommended to group columns which alignByColumn value is true?

mfl512 avatar Sep 01 '21 09:09 mfl512