on-internet
← Community

jquery datatables pagination not working

Stack Overflow ·

I am new to jquery datatables, I had a simple function which call ajax and map the response into datatables, that is working but , the pagination is not working properly , any suggestion would be greate. Here is my code. function loadJson() { $('#datatable') .dataTable( { "bProcessing" : true, "bPaginate" : true, "bServerSide" : true, "sServerMethod" : "GET", "sAjaxSource" : "${pageContext.request.contextPath}/emi/calculate?jsonValue=" + jsonData, "sAjaxDataProp" : "", "fnRowCallback" : function(nRow, aData, iDisplayIndex) { $("td:first", nRow).html(iDisplayIndex + 1); return nRow; }, "aoColum

Comments

Sign in or sign up to comment and upvote.

No comments yet.