mpryvkin / jquery-datatables-row-reordering

JQuery plugin that enables drag and drop row reordering in the tables enhanced with JQuery DataTables plugin.
https://www.gyrocode.com/articles/jquery-datatables-row-reordering/
6 stars 8 forks source link

On your demo the colums no longer sort? #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I tried to sort:)
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by rudy...@gmail.com on 1 Mar 2012 at 3:22

GoogleCodeExporter commented 9 years ago
Hi,

Yes but this is how plugin works - it is always sorted by indexing column. 
Reason for this is simple - if you would try to sort by other columns and 
shuffle indexes (e.g. 7,1,9,2,8) plugin cannot determine what is new order 
position of the dropped row if it is placed on second place (between 7 and 1). 
Therefore this plugin forces fixed ascending sort on the indexing column to 
preserve order.

Regards,
Jovan

Original comment by joc...@gmail.com on 1 Mar 2012 at 3:21

GoogleCodeExporter commented 9 years ago
I can see wanting to reorder records. But once the reordering is done and I
have my seq numbers set in database, for analysis purposes i want the
capability back to just be able to click on sort for the other columns.

Could drag and drop not be auto disabled if that Seq column is not the one
on sorted.

Drag and drop is a nice feature and all, but once u are done reordering ya
records you no longer needed it, until new records arrive that is. lol

On Thu, Mar 1, 2012 at 7:21 AM, <
jquery-datatables-row-reordering@googlecode.com> wrote:

Original comment by rudy...@gmail.com on 1 Mar 2012 at 5:00

GoogleCodeExporter commented 9 years ago
Hi,

You always can optionally include row reoprdering something like:

var oTable = $("#myTable").dataTables();
if(bAplyReordering)
  oTable.rowReordering();

Jovan

Original comment by joc...@gmail.com on 6 Mar 2012 at 12:06

GoogleCodeExporter commented 9 years ago
So nothing like?
$("#myTable").dataTables()rowReordering().fnDestroy();

Original comment by rudy...@gmail.com on 15 Mar 2012 at 12:25

GoogleCodeExporter commented 9 years ago
I don't understand you. What you want to achieve with fnDestroy?

Original comment by joc...@gmail.com on 16 Mar 2012 at 8:47

GoogleCodeExporter commented 9 years ago
Am a newb to js and jQuery. I just want the capability to EASILY turn OFF the 
reordering add-on and go back to the defaults of dataTables. But nevermind:) 
I'll figure something out:)

Thanks

Original comment by rudy...@gmail.com on 17 Mar 2012 at 2:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
How to disable plugin after enabling it? I mean I want to go back to column 
ordering withoout page refresh. Actually I think Rudy above tried to ask same 
thing...

BTW: Thank you for the great plugin :)

Original comment by baco...@gmail.com on 15 Apr 2012 at 4:33

GoogleCodeExporter commented 9 years ago
I have the some problem as people above. When deleting RowOrdening, everything 
works

Original comment by c...@ceesvanegmond.com on 9 Oct 2012 at 2:22

GoogleCodeExporter commented 9 years ago
Did anyone find a solution for deactivating the rowreordering plugin?

Original comment by torstein...@gmail.com on 23 May 2014 at 7:11

GoogleCodeExporter commented 9 years ago
Same issue here. Would be nice to be able to sort client side

Original comment by cmptrwiz...@gmail.com on 29 May 2014 at 8:26

GoogleCodeExporter commented 9 years ago
    $("tbody", oTable).sortable({"disabled" : true});

    $("tbody", oTable).sortable( "enable" );
after digging a little found the solution for it

Original comment by er...@esparksolutions.com on 30 Jun 2015 at 11:06