Comments (4)
Thanks for your thoughts on this. The data swap that RowReorder uses when the data is rows are reordered is fairly core to the software. You can tell it to use any data property in the table, although a sequence number is the most common. Perhaps there should be an option to have it not update any data property, but I don't see the benefit of that, since the ordering applied to the DataTable would just move your row back to where it should be in the table ordering. It would only be useful if sorting were disabled, but then you'd still want to update a data property (even if it is a hidden column).
from rowreorder.
Essentially, it would just add an event listener on the table sorting, so that whenever a table is sorted by a different column it would reset the sequence number of each row to whatever new row number the data is in the table.
Then if a user manually drags a row, it sets the sort to the sequence column, and does the normal row reorder data swap.
from rowreorder.
Oh I see. This example combined with the ability added to RowReorder to not update data would do what you are looking for then.
from rowreorder.
Yes. Essentially I want a user to be able to use the sorting of the table as a jumping off point so they can customize their list faster without having to drag every item to where they want. I will have a pull request shortly to add the option.
from rowreorder.
Related Issues (17)
- Support Programmatic Reordering HOT 3
- Event on row reorder initialisation HOT 12
- Row sequence corrupted when reordering a row on a filtered table and pressing Ctrl-z HOT 1
- Drag stops at window edge in IE11 HOT 1
- Bug when using rowreorder extension together with the scroller extension HOT 4
- Drag drop animation improvement HOT 2
- Preserving row attributes / proper row reordering HOT 5
- Selector-Modifier to support RowReorder HOT 3
- Speed up reorder when a lot of rows shown HOT 3
- The package may have incorrect main/module/exports specified in its package.json HOT 7
- with rowreoder while dragging a row , rows are not completely scrolling upto last row HOT 3
- Keyboard-driven method for reordering rows HOT 1
- Handling Child Rows
- Table fails to scroll when dragging rows HOT 1
- AMD dependency is wrong
- Add Ajax Initialisation Example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rowreorder.