full-numbers Pagination Customization

full-numbers Pagination Customization

rasikowrasikow Posts: 20Questions: 0Answers: 0
edited May 2009 in General
Hi,

I want to display the Pagination in full-numbers format with this customization. please clarify

[code]Showing x - xx of xx results First Previous 1 2 3 Next Last Show X Entries [/code]

How to do? pls clarify

- Gnaniyar Zubair

Replies

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin
    Hi,

    You can use sDom to do this ( http://datatables.net/usage#sDom ). Try (for example) the following:

    [code]
    $(document).ready(function() {
    $('#example').dataTable( {
    "sDom": '<"top"i>rplt<"bottom"f<"clear">'
    } );
    } );
    [/code]

    Note that you _will_ need to change the default CSS styles to match what you are looking for - but this will place the DOM elements on the page where you need them.

    Allan
  • rasikowrasikow Posts: 20Questions: 0Answers: 0
    Hi Allan,

    Thanks for your quick response.

    I will try it out.

    - Gnaniyar Zubair
  • rasikowrasikow Posts: 20Questions: 0Answers: 0
    if i give like this, i am getting proper display

    "sDom": 'tfpli<"clear">'

    Thanks.
  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin
    That will do nicely then :-)

    Thanks for letting us know.

    Allan
This discussion has been closed.