komarovalexander / ka-table

Lightweight MIT React Table component with Sorting, Filtering, Grouping, Virtualization, Editing and many more

Home Page:http://ka-table.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reordering rows with groups

soeppe opened this issue · comments

Hello

I am trying to reorder a tabel that has groups in it.
And i was wondering if it there is a way to drag the group row.

And is it also posible to drop a row below an other row?
lets say i want to place R3 after R1
Now i Can only drop R3 befor R1 and then I can drop R1 befor R3
image

https://stackblitz.com/edit/table-overview-ts-elh5mm?file=Demo.tsx here u go.
So i want to be able to move R3 to G1 and insert it underneath R1

Hi @komarovalexander do u have a update on the status of this issue?

Hi @soeppe sorry I missed your message, Thanks for provided example I will investigate it next week

Okay tanks!

Hi @soeppe
there is a workaround, you can override the default behavior of action and reducer:
https://stackblitz.com/edit/table-overview-ts-u18mta?file=Demo.tsx,style.scss

in this example do not forget to disable default row reordering, to make the workaround work: rowReordering: false,

@komarovalexander Thank u i will check this out