datable without pagination and search bar
datable without pagination and search bar
awais_naseem
Posts: 3Questions: 0Answers: 0
Hello,
I am creating a dynamic html table and then converting it to datatable so no server side is involved. I want datatable without search bar and pagination like I showed in this screenshot. http://www.histone.com.pk/jing/datatable_001.png
If I put oSearch : false in the option I get an error from core file that disturb many things.
Thanks in advance.
I am creating a dynamic html table and then converting it to datatable so no server side is involved. I want datatable without search bar and pagination like I showed in this screenshot. http://www.histone.com.pk/jing/datatable_001.png
If I put oSearch : false in the option I get an error from core file that disturb many things.
Thanks in advance.
This discussion has been closed.
Replies
.dataTables_filter, .dataTables_paginate, .dataTables_length {
display: none;
}
1. .dataTables_filter, .dataTables_paginate, .dataTables_length, .dataTables_info {
display: none;
}
2. Add "bPaginate": false
Thanks
You'll need to set your "sDom" correctly to remove the search and disabled pagination.
check the following:
http://datatables.net/usage/options#sDom
and
http://datatables.net/usage/features#bPaginate
those 2 should sort you out
Allan