I have a function to DrawCallback.push. And i want to call inside dataTableExt.oSort ....

I have a function to DrawCallback.push. And i want to call inside dataTableExt.oSort ....

juantsuyojuantsuyo Posts: 3Questions: 1Answers: 0

I have a function:

jQuery.fn.dataTableExt.oApi.fnFakeRowspan = function ( oSettings, iColumn, bCaseSensitive ) {
        ...
       oSettings.aoDrawCallback.push({ "fn": fakeRowspan3, "sName": "fnFakeRowspan3" });
    return this;
};

And i want to call inside:

jQuery.extend( jQuery.fn.dataTableExt.oSort, {
        "numeric-comma-pre": function ( a ) {
            var x = (a == "-") ? 0 : a.replace( /,/, "." );            
            
             ¿¿ jQuery.fn.dataTableExt.oApi.fnFakeRowspan(0);    ??

              cond = false;
          }
            
            return parseFloat( x );
        },

is there any idea?

Replies

  • kthorngrenkthorngren Posts: 21,167Questions: 26Answers: 4,921

    The FakeRowspan plugin has this comment:

    this plug-in currently only operates correctly with server-side processing.

    If you have server side processing enabled then the Sorting Plugin won't work as it is for client side data. The behavior you need to achieve will need to happen with your server side code.

    Maybe you can post more information (Datatables JS code) and describe more about the problem you are trying to solve.

    Kevin

This discussion has been closed.