sodri126 / 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

GoogleCodeExporter commented 9 years ago
#3 will not fix the problem.

This will disable the sorting part and grouping as well. I mean we get rid of 
sorting but grouping is not proper after applying #3.

Original comment by manishsp...@gmail.com on 22 May 2015 at 11:57

GoogleCodeExporter commented 9 years ago
Under categories I need to show some profiles. Initially from the database I am 
fetching the data with categories as asc sorting and need to show as it is. 
However Jquery is making the default sorting with first column. If I remove the 
sorting feature I can show the grid correct initially but I also need to have 
Sorting feature in the grid. Can anyone please let me know if you found any 
custom code for this. 

Regards
Madhu

Original comment by sms02...@gmail.com on 3 Aug 2015 at 11:15

GoogleCodeExporter commented 9 years ago
Note : I am using the category column as the row grouping. 

Original comment by sms02...@gmail.com on 3 Aug 2015 at 11:17