Row sorting in an PHP page is a very useful feature giving the user the ability to sort the presented data.
DragDrop Sort Table lets you add dragging capabilities ( Drag-and-Drop behavior) to a table. With this behavior the user is able to move the table rows UP and DOWN and when release the row in a new position the extension detect the new position of each moved rows and save in the database the new order.
This server behavior can be applied to a table that has a repeat region on it.
The server behavior will automatically create all the code necessary to have draggable cells that will order the recordset by the columns you setup in the extension panel.
The pre-requisites to use this extension are as follows:
- Add a recordset to the page (Dreamweaver compatible recordset)
- Add a table on the page with a repeat region, is not necessary you use the DW repeat region
- The table must have the ID attrivute, this is important
- The table must be inside a FORM