-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Row reordering with DragDrop for TurboTable #504
Comments
I would love to see this feature also |
+1 |
+1 |
We need this functionality as well. We are currently combining ng2-dnd with p-datatable. However, it doesn't work as nice because as you drag [value] keeps getting updated nonstop and all the rows flicker back and forth. The only way to control it is to specify [rowTrackBy] function to be () => {}. This was present in 1.1.1, but was removed in 1.1.3. |
+1 |
2 similar comments
+1 |
+1 |
would beer someone to add this. |
+1 |
1 similar comment
+1 |
+1 |
+1 |
@taivu how much beer?? 🍻 |
+1 |
My issue was similar, I had to drag a row from table A and drop into a row of table B. |
Upvoted. Need this. |
+1 |
1 similar comment
+1 |
I needed user to be able to reorder rows in the datatable by dragging. I have implemented it with ng2-dragula directive: |
@akolybelnikov hi, ur post is really helpful for pure html tag situation, but i want to know if i can integrate dragula with primeng's data-table scenario, just like this post(#2209), would you like to help on this? thanks in advance. |
@arwindgao check this plunkr out: |
It's works!!! Thanks!!! @akolybelnikov |
+1 |
Thanks so much @akolybelnikov! Your Plunker is genius! |
One quick note about @akolybelnikov's plunker, after I implemented the solution, my app failed it's aot build. The "bag" declared in the primeNG table doesn't have a value within the typescript file, and Angular didn't like that. For me, the solution was just to not pass the bag into primeDragula. It doesn't seem to need it: I hope that helps someone. |
+1 |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
We'll try this for new TurboTable targeting 5.2.0-RC2 |
Moved to RC3 as we need to release RC2 asap. |
Niiiiiiice |
For those who are interested you can make the entire row draggable (not just the handle) by applying the handle directive to the actual cell.
|
Any hook for handling reorder like onDragEnd? Can't find anything in the docs Also is it possible to pass item property as pReordableRow? Tried multiple combinations but with no luck. |
Hi,
One of the important functionality of datatable could be dragging and dropping rows within table.
Even though draggable and dropable component is available and example shows how to drag and drop from outside into datatable as below,
http://www.primefaces.org/primeng/#/dragdrop
There is no example or feature telling about dragging and reordering row within datatable like below example.
http://blog.primefaces.org/?p=3026
http://www.guriddo.net/demo/guriddojs/integrations/drag_drop_rows/index.html
Is it possible? if so, could you please provide code for it?
The text was updated successfully, but these errors were encountered: