corrisoft / jquery-datatables-row-grouping

Automatically exported from code.google.com/p/jquery-datatables-row-grouping
0 stars 0 forks source link

There is no way to disable initial sorting when using jquery-datatables-row-grouping #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Define table with grouping using jquery-datatables-row-grouping plugin
2. set 
"aaSorting": []
The table appear sorted

3. set 
"bSort": false
The table appears not sorted, but is not sortable at all, which was not the 
original intention.

What is the expected output? What do you see instead?
"aaSorting": [] suppose to disable initial sorting, while the table will still 
be sortable.

What version of the product are you using? On what operating system?
server is Centos 6, jquery is 1.7.1, datatabales is 1.9.1, 
jquery-datatables-row-groupingi is 1.2.7
running in Chrome on Windows

Please provide any additional information below.

Original issue reported on code.google.com by l...@tikalk.com on 2 Dec 2012 at 8:42

GoogleCodeExporter commented 9 years ago
I'm also looking for this issue to be fixed. I have my server handle the sort 
and datatables leaves that alone for me, but when I use the grouping plugin, it 
sorts it by the grouping, which I don't want.

Original comment by shaymerr...@gmail.com on 11 Jul 2013 at 7:21

GoogleCodeExporter commented 9 years ago
any luck on this? this completely defeats the purpose of my table. group and 
sort are not the same thing why are they being treated as such? 

Original comment by m...@tactmarketing.com on 2 Oct 2013 at 5:23

GoogleCodeExporter commented 9 years ago
nm I solved by commenting out lines 626-632, seems to work

  var aaSortingFixed = new Array();
            aaSortingFixed.push([properties.iGroupingOrderByColumnIndex, properties.sGroupingColumnSortDirection]);
            if (properties.iGroupingColumnIndex2 != -1) {
                aaSortingFixed.push([properties.iGroupingOrderByColumnIndex2, properties.sGroupingColumnSortDirection2]);
            } // end of if (properties.iGroupingColumnIndex2 != -1)

            oTable.fnSettings().aaSortingFixed = aaSortingFixed;

Original comment by m...@tactmarketing.com on 2 Oct 2013 at 5:30