sureshreddyk / jquery-datatables-row-grouping

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

row grouping plugin does not allow filters in the server-side mode (universal or Jovan's column filter plugin) #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. 
http://jquery-datatables-row-grouping.googlecode.com/svn/trunk/collapsibleGroups
.html
2. collapse "Gecko"
3. type "Fire" in search box

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

I was hoping that the matched rows will be shown, even if it is collapsed.

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

Please provide any additional information below.

In the above webpage, the filtered terms works OK if all the rows are expanded. 
However, in my own example where I have the following values, the filter does 
not work even when everything is expanded. I cut down the arguments to those 
that I think affect the operation:

    myTable = $('#example').dataTable({
    "iDisplayLength": 100, 
        "bJQueryUI": true,
        "": "full_numbers",
        "bProcessing": true,
        "bServerSide": true,
    // below needed by rowGrouping
"bLengthChange": false, "bPaginate": false, 
        "sAjaxSource": "server_processing.php",
<blah blah>
            "aoColumns": [
            /*id*/      {"bVisible": false},
            /*image*/ { "sClass": "center", "bSortable": false },
            /*block*/ { "sClass": "left"},  
 <blah blah>
]
}).columnFilter({ 
                "aoColumns": [
                    /*image*/ null, 
                    /*block*/   { type: "text" },
<blah blah>]  },
                ]
}).rowGrouping({  bExpandableGrouping: true, 
                  iGroupingColumnIndex: 2,
                  asExpandedGroups: ["something"],
                  sGroupingColumnSortDirection: "asc",
                  iGroupingOrderByColumnIndex: 2
        }) ;

Thanks for your HELP.

Original issue reported on code.google.com by yfn...@gmail.com on 12 Sep 2011 at 11:20

GoogleCodeExporter commented 8 years ago
firebug reports:
A.aoData[A.aiDisplay[K]] is undefined
[Break On This Error] 
(function(a){a.fn.rowGrouping=function...er"){}else{}s.fnDraw()})}})(jQuery); 

I'm using 1.1 min version.

Original comment by yfn...@gmail.com on 13 Sep 2011 at 3:47

GoogleCodeExporter commented 8 years ago
Hi,

You are right. I hav etried it in the server-side mode and found few other 
problems. It is caused by the complex interaction between the DataTables and my 
plugin and i some cases I do not have control over this.
In the version 1.1.2. On each refresh from the server all groups are expanded. 
There are soe problems with remembering what groups are expanded in the 
server-side mode and refreshing the table so for now this is only solution. Let 
me now whether this resolved your problem too. After this change I have not 
noticed the error you have reported.

Thanks,
Jovan

Original comment by joc...@gmail.com on 24 Sep 2011 at 9:39