Tuesday, February 24, 2009

Re: Manual sorting of data records (datasets)

Both protaculous and jquery (and prob most other js libraries) have a sortable function so you can drag and drop records  (re-ordering) with your mouse, and a serialize function so you can send the re-ordered ids back to the server to update the database.

I'm sure you could also do the move up/down code pretty easily, but drag and drop is pretty common these days and is not too difficult. One thing to be aware, is not all libraries support sorting table rows (afaik), but there are workarounds.

Hope that helps,
Adam

hasentopf wrote:
Clicking on the table header is only temporary. I need a permanent solution which changes the order of the table.  Something like: "Move up", "Move down", "Move to the top" and "Move to the bottom"  Best Mathias  On 24 Feb., 11:51, "Liebermann, Anja Carolin" <anja.lieberm...@alltours.de> wrote:   
Hi Hasentopf,  Do you think of drag and drop or sorting by clicking on the table header?  Anja      
     

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: