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

Possibility to Sort the table by drag n drop (change order) #105

Closed
karlingen opened this issue Jul 31, 2013 · 6 comments
Closed

Possibility to Sort the table by drag n drop (change order) #105

karlingen opened this issue Jul 31, 2013 · 6 comments
Assignees

Comments

@karlingen
Copy link

Would it be possible to implement a feature where you can change the order of different rows?

For example in http://ludo.cubicphuse.nl/jquery-treetable/
under "Complex Tree With Drag and Drop" I would like to be able to drag the "iPhone SDK License.rtf" and drop it right under "Acknowledgements.rtf".

Just like how the "sortable" works in jQuery.

Thanks a bunch in advance!

@magefad
Copy link

magefad commented Jul 31, 2013

👍

@karlingen
Copy link
Author

Just got this from Ludo:
"Sorting is a much-requested feature that I'd like to add but the next couple weeks I don't have much time. I'm writing this from the border between China and Mongolia as I am traveling a bit right now.

It might be possible to do something with the cached tree representation in data['treetable'].tree and use that to update the dom."

@ghost ghost assigned ludo Sep 19, 2013
@GalawynRM
Copy link
Contributor

any update? it would be interesting. Some suggestion on how we could implement it?

@ludo
Copy link
Owner

ludo commented Oct 25, 2013

Table rows do not like to be messed with. I have been looking at how this can be done, either with the jQuery UI Sortable and D&D components or a custom implementation. The UI/UX for this feature has a lot of edge cases but is not ridiculously complicated, except for the fact that tables and table rows are not the easiest HTML elements to work with in JavaScript.

The time I can spend on this component is limited so unfortunately I cannot give a time frame when this feature might be implemented. Any help is appreciated!

@GalawynRM
Copy link
Contributor

I will try but not sure how to do. I tried commenting one of the conditions
of the move API, and it's let you put an elements in same parent he
previously had, bringing him on first position.

I found a possible bug, that I'm trying to reproduce, it's not related to
my modification, it is present even without.
Practically, if we remove all the children from a node, the > expander icon
stay indeed disappear. When I'll be able to simplify at max the html code
I'll post it on jsfiddle

Il giorno venerdì 25 ottobre 2013, Ludo van den Boom ha scritto:

Table rows do not like to be messed with. I have been looking at how this
can be done, either with the jQuery UI Sortable and D&D components or a
custom implementation. The UI/UX for this feature has a lot of edge cases
but is not ridiculously complicated, except for the fact that tables and
table rows are not the easiest HTML elements to work with in JavaScript.

The time I can spend on this component is limited so unfortunately I
cannot give a time frame when this feature might be implemented. Any help
is appreciated!


Reply to this email directly or view it on GitHubhttps://github.com//issues/105#issuecomment-27095260
.

@karlingen
Copy link
Author

@ludo any progress on this?

@ludo ludo closed this as completed Mar 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants