add datatables_length at the bottom of the table

add datatables_length at the bottom of the table

r4ccoonr4ccoon Posts: 6Questions: 0Answers: 0
edited November 2010 in General
hi, how do you add one more "show 10,50,100" entries select box underneath the table?

Replies

  • r4ccoonr4ccoon Posts: 6Questions: 0Answers: 0
    please answer me
  • r4ccoonr4ccoon Posts: 6Questions: 0Answers: 0
    I spent few hours, and left it about few weeks. and got back working on it again.
    so it just the matter of one letter in a variable.

    how i did it,
    by changing sDom variable at initialization

    [code]
    $('#box-table-a').dataTable( {
    "sPaginationType": "full_numbers",
    "sDom": 'Rlfrtlip',
    "bStateSave": true,
    "aoColumnDefs": [
    { "bSortable": false, "aTargets": [0,6,7] },
    { "bSearchable":false, "aTargets": [0,6,7] }
    ]
    } );
    [/code]
  • r4ccoonr4ccoon Posts: 6Questions: 0Answers: 0
    i was frustated enough, tried to change the datatable core files, i had that thought because it doesnt have any templating system. but it seems solved the way i do it.

    i ll explain, sDom
    it says Rlfrtlip.
    the letter that I have concern with is the "l" means length-> this one is for datatabel length feature.
    so R means something else, and datatable will parse them and render it.
    so it will render "R", then "l"(the length changing dropdown), f,r, and so on, till "t" will render the table, and "l" again, it will render the datatable length again.
This discussion has been closed.