How to add a new button left side of the pagination buttons and show all records on click?
How to add a new button left side of the pagination buttons and show all records on click?
![dineshck](https://secure.gravatar.com/avatar/138e137d178891a17472c5e66088d222/?default=https%3A%2F%2Fvanillicon.com%2F138e137d178891a17472c5e66088d222_200.png&rating=g&size=120)
I am trying to add a new button left side of the pagination button and on clicking the button it should display all the records int the data table. Your help will be highly appreciated. Thanks in advance
This discussion has been closed.
Answers
var thisTable = $('table#tickets.tkt').dataTable({
"iDisplayLength": 25,
"aoColumns": dontSort1,
"aaSorting": [[ 0, 'desc']],
"bRetrieve": true,
"sDom": '<"top"f>rt<"bottom"pi><"bottom" <"#taskbuttonfilternew">><"clear">',
"fnDrawCallback": function(oSettings) {
$('#taskbuttonfilternew').html('');
$('#taskbuttonfilternew').append('<button type="button" role="button" class="btn btn-mini pull-right" style="margin-top:5px;margin-left:10px;"><?php echo $this->lang->line('application_all');?></button>');
}
and added -
$('#taskbuttonfilternew').click(function(){
may be helpful to someone...