Table Columns Reordering Not Working - Only header cells are getting moved, not the body of the table
See original GitHub issueI’m submitting a … (check one with “x”)
[ x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here
Current behavior Column Reordering not working as expected, only the header cell is getting reordered when dragged but column in the datatable’s body stays unmoved and doesn’t adjust as per changes in the header
Expected behavior Upon dragging table’s header cell to reorder columns, both header’s cell and its corresponding body’s column should get reordered together as they are tied to each other.
Reproduction of the problem Nothing special, for me just used the basic demo example from the repository and gives me the same problem in both Chrome and FF browsers(only ones I checked on). I used the version of angular2-data-table from both npm and the master branch(just before reporting this issue here) from this repository and caused the same problem. Started working on this Angular 2 project couple of weeks ago, used angular-cli to setup the project.
******** If you have a working example/demo somewhere please do direct me towards that or put it in the demo examples please ********
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
I checked it again on my local development environment, tried to use all your recent Releases tagged here and used this example https://github.com/swimlane/angular2-data-table/blob/master/demo/basic/basic-auto.ts...resize starts working only if I change the [columnMode] to “standard” otherwise it didn’t work for me. But even after changing to standard mode, columns reordering didn’t work for me at all.
Now coming to the demos here http://swimlane.github.io/angular2-data-table/, checked Basic demo(very first one) and columns resizing and reordering both not working; columns resizing works on Horz/Vert Scrolling demo though but not the columns reordering. I checked on Chrome( 54.0.2840.71 (64-bit)) and on columns reordering it throws an error as well on Console. So still doesn’t work for me, which demo you are trying which works for you? I can try exactly that may be?
Demos for Angular1 are definitely working here http://swimlane.github.io/angular-data-table/ but not the Angular2 ones.
Thanks.
Fixed. New version coming.