ranman0049 / jquery-datatables-column-filter

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

Server side processing(ajax) not working for datatable 1.9 version #50

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
DataTable Version 1.9
Column Filter Version 0.9.0
Uncaught TypeError: Cannot read property 'sServerMethod' of undefined

Original issue reported on code.google.com by arunss...@gmail.com on 9 Feb 2012 at 2:59

GoogleCodeExporter commented 8 years ago
Hi,

Could you try it with the latest version of plugin 1.4.4. because I have 
example that do work with server side processing see 
http://jquery-datatables-column-filter.googlecode.com/svn/trunk/serverSide.html.

Thanks,
Jovan

Original comment by joc...@gmail.com on 12 Feb 2012 at 7:28

GoogleCodeExporter commented 8 years ago

Original comment by joc...@gmail.com on 12 Feb 2012 at 7:32

GoogleCodeExporter commented 8 years ago
Hi,

Please upgrade your plugin with the latest version. I have integrated column 
filter with DataTables 1.9 and it works on my examples:

http://jquery-datatables-column-filter.googlecode.com/svn/trunk/serverSideJSONP.
html
http://jquery-datatables-column-filter.googlecode.com/svn/trunk/serverSideJSONP-
objects.html
http://jquery-datatables-column-filter.googlecode.com/svn/trunk/serverSideJSONP-
ids.html

Original comment by joc...@gmail.com on 13 Feb 2012 at 3:36

GoogleCodeExporter commented 8 years ago
It dont't work with scroller plugin.

Jquery: 1.7.2
Jquery UI: 1.8.2
DataTable: 1.9.1
column-filter: 0.9.0

Code:

$('#tParams').dataTable({
        "bProcessing": true,
        "bServerSide": true,
        "sAjaxSource": "index.php?ac=param",
        "sScrollY": $(window).height()*0.99-277,
                "sDom": "frtiSHF",
                "bDeferRender": true,
        "bJQueryUI": true,
        "sPaginationType": "full_numbers",
        "aoColumns": [
            {"bVisible": false},
            null,
            null,
            null,
            null,
            null,
            { "mDataProp": null, "fnRender": function(o){return '<a href="index.php?ac=param&action=edit&idParams='+o.aData[0]+'">Edit</a>'; }},
            { "mDataProp": null, "fnRender": function(o){return '<a class="deleteLink" href="index.php?ac=param&action=delete&idParams='+o.aData[0]+'">Delete</a>'; }}
        ]
    }).columnFilter();

Error:

jquery.dataTables.min.js:132Uncaught TypeError: Cannot read property 
'sServerMethod' of undefined
j.defaults.fnServerDatajquery.dataTables.min.js:132
$.fn.columnFilter.each.oTable.fnSettings.fnServerDatajquery.dataTables.columnFil
ter.js:329
wajquery.dataTables.min.js:45
zjquery.dataTables.min.js:37
(anonymous function)Scroller.min.js:32

Without .columnFilter() it work.

Original comment by jose.nob...@gmail.com on 2 May 2012 at 8:47

GoogleCodeExporter commented 8 years ago
I have the same problem.

jquery = 1.9.1
datatables = 1.9.4
columnFilter = 0.9.0

  $("#workorders").dataTable(
    sPaginationType: "full_numbers"
    bProcessing: true
    bServerSide: true
    sAjaxSource: $('#workorders').data('source')

    sDom: "T<\"clear\">lfrtip"

    oTableTools:
      aButtons: [
        "copy"
        "csv"
        "xls"
      ,
        sExtends: "pdf"
        sPdfOrientation: "landscape"
        sPdfMessage: "Salt Lake County"
        mColumns: "visible"
        "print"
      ]
  ).columnFilter()

Original comment by burton...@gmail.com on 16 May 2013 at 2:11

GoogleCodeExporter commented 8 years ago
Hi, I have try the latest  latest version of plugin 1.4.4,but it still doesn't 
work,"Uncaught TypeError: Cannot read property 'sServerMethod' of undefined"

Original comment by zjuLiang...@gmail.com on 22 Oct 2013 at 2:17

GoogleCodeExporter commented 8 years ago
Hi everyone I'm using DataTable 1.9.4 and column filter(very useful thanks a 
lot) about error : 

    "Uncaught TypeError: Cannot read property 'sServerMethod' of undefined"

I changed  line 316 in jquery.dataTables.columnFilter.js from this:

    oTable.fnSettings().fnServerData = function (sSource, aoData, fnCallback) {

to this:

    oTable.fnServerData = function (sSource, aoData, fnCallback) {

it works for me. I hope it works for you too.

Original comment by umitdogu...@solenos.com on 27 Nov 2013 at 2:03