Can we maintain fixed no of rows for that data table even though there is no data
Can we maintain fixed no of rows for that data table even though there is no data
Hi Allan,
Can we maintain fixed no of rows even though there is no data.What I am trying to achieve is every page should maintain 8 rows even though there are less than 8 records for a page. I want the same replication while searching and sorting..
Currently I am able to achieve 8 rows for the first page when the page loads by this script..
var noOfRows=$('#orderSummaryDetails tr').length;
if(noOfRows<11){
for ( var i = 0; i < 9-noOfRows; i++ ) {
$("#ordersList").append("<tr><td></td><td></td><td></td><td></td><td></td></tr>");
}
}
How can i run the same function when user click on the next page.?