Components: Is there a column drag-drop capability in md-table?

Created on 17 Aug 2017  路  7Comments  路  Source: angular/components

Bug, feature request, or proposal:

Feature

What is the expected behavior?

Should be able to change the column position by drag/drop capability

What is the current behavior?

I don't see an option for that in the current example provided.

What are the steps to reproduce?

Create a simple md-table grid with more than one column in it and try to change the column position by drag-drop.

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Is there anything else we should know?

Most helpful comment

Can you please provide guideline on how to implement the column re-positioning feature in md-table or cdk-table.
Thamks

All 7 comments

There is nothing built into the table; eventually we'll have some guidance on how to do things like this, but it won't ever be baked directly into md-table or cdk-table

Can you please provide guideline on how to implement the column re-positioning feature in md-table or cdk-table.
Thamks

We too need some guideline on how to implement column reordering on drag and drop, with some hooks to track the new order of the columns after the reordering event. I would really appreciate if you could provide some guideline on this.

Since this issue is closed and a much needed requirement for our app, it would be great to see if any support or workarounds are available. Thanks in advance

@palarnab here is the related issue that is currently open

Come cross with angular material table column drag and drop.
Here is my solution: https://github.com/lujian98/Angular-material-table-DnD.
You may have to change the data source interface if you want use it.
Here is demo: https://stackblitz.com/edit/angular-p12rek

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

julianobrasil picture julianobrasil  路  3Comments

alanpurple picture alanpurple  路  3Comments

theunreal picture theunreal  路  3Comments

vanor89 picture vanor89  路  3Comments

constantinlucian picture constantinlucian  路  3Comments