ant-design-blazor icon indicating copy to clipboard operation
ant-design-blazor copied to clipboard

Table - let user change order of columns using drag and drop

Open Martin-Pucalka opened this issue 3 years ago • 6 comments

Is your feature request related to a problem?

I would like to let user to change order of columns using drag and drop.

Describe the solution you'd like

Ideal solution would be, that user starts dragging by clicking into column header and drops this column somewhere between other columns.

Alternative solution for me now is to have definition of columns order elsewhere. Let user define columns order there and then use this settings to update columns in the table.

Additional context

I have views with a lot of columns in database and I would like to let user to choose, which he would like to see in the table. I also work on AntTable-OData adapter, which I use to solve filtering, ordering, pagination and selecting columns on server side. AntTable QueryModel is translated into OData query and result is rendered into table.

Martin-Pucalka avatar Dec 15 '21 08:12 Martin-Pucalka

Thanks for contacting us @Martin-Pucalka .

This is a great feature, would you be interested in helping to implement it?

ElderJames avatar Dec 15 '21 08:12 ElderJames

And column resizing together great future.

mehmetuken avatar Dec 15 '21 13:12 mehmetuken

Column resizing would be great to have!

vadimffe avatar Dec 03 '22 14:12 vadimffe

Hello @vadimffe , could you please to help us implement that?

ElderJames avatar Dec 03 '22 16:12 ElderJames

Implementing column drag-and-drop functionality or the ability to change the column order would also be a nice feature to have.

aathirakhusi avatar Sep 26 '23 08:09 aathirakhusi

Hi @aathirakhusi , now you can try to use foreach loop to render the columns.

ElderJames avatar Sep 26 '23 12:09 ElderJames