DataTable propertiees are not working proerly

DataTable propertiees are not working proerly

parladparlad Posts: 4Questions: 1Answers: 0
edited May 2017 in Free community support

Hi all , i am new to Jquery DataTable , i have a few problem , my search , short and pagination pare not working, here is my code, thanks

`$('#datatable')
.DataTable(
{
"bPaginate" : true,
"bProcessing" : true,
"bServerSide" : true,
"bScrollCollapse" : true,
"iDisplayLength" : 10,
"aaSorting" : [],
"sServerMethod" : "GET",
"sAjaxSource" : "${pageContext.request.contextPath}/emi/calculate?jsonValue="
+ jsonData,
"sAjaxDataProp" : "",
"fnRowCallback" : function(nRow, aData,
iDisplayIndex) {
$("td:first", nRow).html(iDisplayIndex + 1);
return nRow;
},

                        "aoColumns" : [ {
                            "mData" : null
                        }, {
                            "mData" : "emiDate"
                        }, {
                            "mData" : "principle"
                        }, {
                            "mData" : "interestAmount"
                        }, {
                            "mData" : "emi"
                        }, {
                            "mData" : "loanOutstanding"
                        } ]

                    });

`

Answers

  • allanallan Posts: 63,214Questions: 1Answers: 10,415 Site admin

    "bServerSide" : true,

    Have you fully implemented server-side processing in your server-side script?

    Do you actually need server-side processing? See the manual for more information.

    Allan

  • parladparlad Posts: 4Questions: 1Answers: 0

    New to this , i have java ee backend , any code , link would be great here

  • allanallan Posts: 63,214Questions: 1Answers: 10,415 Site admin

    The links are in my post above. I don't publish code for an example EE backend I'm afraid (as its not a platform I'm particularly familiar with).

    Allan

This discussion has been closed.