unwanted pagination in datatables after inserting a new record

unwanted pagination in datatables after inserting a new record

vamshikovamshiko Posts: 1Questions: 0Answers: 0
edited June 2013 in General
. I am new to jquery datatables and facing problems with pagination. when I insert a new tuple then an extra page is being created in the table.

for example : suppose I have 1 record inserted, it initially shows 1 page at the bottom and now if I insert second one then other page is being created. How can I over come this problem



$(document).ready(function(){
$('#datatables').dataTable({
"sPaginationType":"full_numbers",
"aaSorting":[[2, "desc"]],
"bJQueryUI":true
});
})


sir and I have tables like

<?php foreach($response->products as $row): ?>



<?=$row->id;?>
<?=$row->name;?>
<?=$row->amount;?>
<?=$row->type;?>
<?=$row->description;?>
<?=anchor('product/update/'.$row->id.'/','Edit');?>
<?=anchor('product/delete/'.$row->id.'/','Delete');?>

<?php endforeach; ?>
This discussion has been closed.