Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column names goes out of sync with colReorder #496

Closed
ghost opened this issue Oct 30, 2015 · 5 comments
Closed

Column names goes out of sync with colReorder #496

ghost opened this issue Oct 30, 2015 · 5 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 30, 2015

@l-lin

I think there is some issue in Column Reordering, The column name can be dragged far from datatable
https://l-lin.github.io/angular-datatables/#/withColReorder
Image of Yaktocat

As you can see, I can drag the "No move me!" column far from data-table, is there a solution to avoid such things

@l-lin
Copy link
Owner

l-lin commented Oct 30, 2015

That's part of the extension. See the basic example from the official site.

@ghost
Copy link
Author

ghost commented Oct 31, 2015

@l-lin , thanks for the quick reply, but I am working on angular-datatbales, the example you have given is related to jquery-data table, which is little bit of confusing to me, can you guide for a angular example. And by the way the columns here are still going out of range

@l-lin
Copy link
Owner

l-lin commented Oct 31, 2015

angular-datatables is just a wrapper that uses the jquery-datatables. So everything you see there, it will be the same here.

@ghost
Copy link
Author

ghost commented Oct 31, 2015

@l-lin , Sorry to bug you coupe of times But Here I found some thing which has a super column re-order logic, http://plnkr.co/edit/KvJglc?p=preview
So adapted the same in your data-table
http://plnkr.co/edit/gQkBUg0XMl59eXYZLLYB?p=preview

Resulting in some error, I felt, you can help me better in this,
can you please have a look at the plunker

You can make out the column reordering happening, but the dataTable features are lost resulting in some errors in the console

Here I am posting you more info
http://stackoverflow.com/questions/33456026/issue-in-merging-angular-datatable-with-the-drag-drop-directives

@davidkonrad
Copy link

Here is an example of how to prevent columns to be dragged outside the dataTable, including working angular-datatables plnkr demo -> http://stackoverflow.com/q/33442206/1407478

@l-lin l-lin added the invalid label Nov 11, 2015
@l-lin l-lin closed this as completed Nov 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants