primereact icon indicating copy to clipboard operation
primereact copied to clipboard

DataTable: RowSpan Grouping is not working with lazy loading

Open m-ivanova opened this issue 4 years ago • 1 comments

I'm submitting a ...

[x ] bug report
[ ] feature request
[ ] support request

Codesandbox Case (Bug Reports) https://codesandbox.io/s/nice-jepsen-eiiemt?file=/src/demo/DataTableLazyDemo.js

Current behavior When activating rowSpan grouping on Datatable with lazy loading and sorting active, the grouping does not work

Expected behavior To group the rows based on the column

Minimal reproduction of the problem with instructions Create dataTable with lazy loading and sorting. Try the rowSpan grouping feature. Rows are not grouped properly.

Please tell us about your environment:

Windows, Visual Studio Code, node

  • React version: 17.0.1

  • PrimeReact version: Tried with 7.2.0 and 7.2.1

  • Browser: [all ]

  • Language: [| TypeScript X.X | ES6/7 | ES5]

m-ivanova avatar Mar 09 '22 08:03 m-ivanova

Fixed. You had multiple issues but the biggest one was sortField. That is not where you declare it you declare it in state: https://codesandbox.io/s/inspiring-panna-35tnv4?file=/src/demo/DataTableLazyDemo.js

But now you are running into this issue: https://github.com/primefaces/primereact/issues/3836

melloware avatar Dec 30 '22 15:12 melloware