on-internet
← Community

jquery datatables pagination "show entries" not working

Stack Overflow ·

I am new to jquery datatables. I had a simple function which calls ajax and maps the response into datatables. That is working, but the pagination is not working properly. Any suggestion would be great. 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; }, "aoColumn

Comments

Sign in or sign up to comment and upvote.

No comments yet.