paging with "full_numer" css required
paging with "full_numer" css required
I am using pagination with full_numbers
oTable = $('#salespeople').dataTable({
"bProcessing": true,
"sPaginationType" : "full_numbers",
All I see if firstnext1last etc alltogether and not as buttons.
I read I need to add special classes to my css file.
Can you tell me what is needed to add?
Is there a way to remove the first, next, prev , last and just have the page numbers?
Thank you
oTable = $('#salespeople').dataTable({
"bProcessing": true,
"sPaginationType" : "full_numbers",
All I see if firstnext1last etc alltogether and not as buttons.
I read I need to add special classes to my css file.
Can you tell me what is needed to add?
Is there a way to remove the first, next, prev , last and just have the page numbers?
Thank you
This discussion has been closed.
Replies
[code].example_alt_pagination div.dataTables_info {
width: 40%;
}
.paging_full_numbers {
width: 400px;
height: 22px;
line-height: 22px;
}
.paging_full_numbers span.paginate_button,
.paging_full_numbers span.paginate_active {
border: 1px solid #aaa;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
padding: 2px 5px;
margin: 0 3px;
cursor: pointer;
*cursor: hand;
}
.paging_full_numbers span.paginate_button {
background-color: #ddd;
}
.paging_full_numbers span.paginate_button:hover {
background-color: #ccc;
}
.paging_full_numbers span.paginate_active {
background-color: #99B3FF;
}
[/code]
-------------
not sure about disabling the First/Next/Prev/Last. I guess you can use jQuery's .hide() to hide them.
I still see the test as FirstPrevious1NextLast No buttons and alltogether.
Where am I suppose to add this to?
Am I still missing something?
[code]padding: 2px 5px;[/code]
I have my css I have my datatable but where did I tell my datatable to use these new classes I added?
Allan
I added the css classes in the style of the page.
I see in the html in firebug:
FirstPrevious1NextLast
I see datatables_paginate but I don't see the paging_full_numbers
I added in the file that has the datatable defined
all the classes from above.
What am I missing?
Thanks
Thanks,
Allan
I spoke with the designers they say I am missing the classes defined ex first ui-corner-tl ui-corner-bl
I have the classes defined for the paginate but its not applying.
so I have 1. datatable where pagination is full_numbers 2. Classes defined as above stated
Thanks again
Allan
There is no way for me to send you a link since its an internal site.
Here is how the datatable is defined:
var oTable = $('#myDataTable').dataTable({
"bServerSide": true,
"sAjaxSource": "GetSales",
"bProcessing": true,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aoColumns": [
{ "sName": "NAME" },
{ "sName": "STATUS" },
{ "sName": "TRANSFERCOMMISSION" },
{ "sName": "RESIDUALCOMMISSION" },
{ "sName": "IMTUCOMMISSION" },
{ "sName": "ID",
"bSearchable": false,
"bSortable": false,
"fnRender": function (oObj) {
//return 'View';
return '';
}
}
I also have all the classes defined in my cshtml page.
I wonder if this works differently with .net mvc?
.example_alt_pagination div.dataTables_info {
width: 40%;
}
.paging_full_numbers {
width: 400px;
height: 22px;
line-height: 22px; }
.paging_full_numbers span.paginate_button,
.paging_full_numbers span.paginate_active {
border: 1px solid #aaa;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
padding: 2px 5px;
margin: 0 3px;
cursor: pointer;
cursor: hand; }
.paging_full_numbers span.paginate_button {
background-color: #ddd;
}
.paging_full_numbers span.paginate_button:hover {
background-color: #ccc;
}
.paging_full_numbers span.paginate_active {
background-color: #99B3FF;
}