Pagination works strange..

Pagination works strange..

yankoffyankoff Posts: 6Questions: 0Answers: 0
edited August 2009 in General
Hello,

Version 1.5.0.
I use server side processing:

$("#table").dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "ajax_server.php?act=get_public_collections",
"sPaginationType": "full_numbers"
});
Server returns valid json, I have checked it on jsonlint.com. It sounds strange but to change page I have to click 2-3 times on paginator.. Everytime when I click it, I can see (in firebug) normal get request to ajax_server.php, but only after 2-3 clicks table's changes content.. Anybody had same problem?

Replies

  • yankoffyankoff Posts: 6Questions: 0Answers: 0
    I have just downloaded DataTables from here http://datatables.net/release-datatables/media/js/jquery.dataTables.js
    and problem solved, now it's works fine.
  • allanallan Posts: 63,810Questions: 1Answers: 10,516 Site admin
    Hi yankoff,

    Sounds like you are running into the full_numbers pagination bug in 1.5.0 - http://datatables.net/forums/comments.php?DiscussionID=487&page=1#Item_2 . Will be fixed in the next release :-)

    Regards,
    Allan
  • viperx1967viperx1967 Posts: 4Questions: 0Answers: 0
    Are there any known issues with the full_numbers setting for the pagination? Reason I am asking is I have an issue where my all of my pagination seems to run together there is no space between them at all. so it looks like a jumbled mess. I am using the following init for my datatable and am using the latest version of your dataTables.js file.
    [code]$("#myDataTable").dataTables({
    "bJQueryUI":true,
    "bSort":false,
    "bPaginate":true,
    "sPaginationType":"full_numbers"
    });[/code]

    What i get on my pagination is [First][Previous][1][2][3][Next][Last] but all of my paging menu options seem to be run together so i get a jumbled mess at the bottom. I am testing in IE 9 and Firefox 4.0.1

    Any help would be greatly appreciated.
  • viperx1967viperx1967 Posts: 4Questions: 0Answers: 0
    Found the fix under a different thread.
    .paging_full_numbers .ui-button {
    padding: 2px 6px;
    margin: 0;
    cursor: pointer;
    * cursor: hand;
    }
This discussion has been closed.