Results 1 to 2 of 2

Thread: Non Display of DataTables Paginate Line

  1. #1
    Join Date
    Feb 2013
    Location
    California
    Posts
    86
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default Non Display of DataTables Paginate Line

    In DataTables the table_paginate area always displays no matter the number of records. If the lengthMenu is [20, 40, 80] and there are only 10 records the table_paginate area displays 'First Prev 1 Next Last' which is somewhat useless. I would like to somehow not display this if the number of records displayed are less than the minimum lengthMenu value. The same is true if the number of records is zero.

    So, the question is... How does one 'Hide' the table_paginate area if desired? Is there an initialization parameter that can be used? What event triggers the calculation of the count of displayed rows?

    TIA for your assistance.
    jdadwilson

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    I'm not sure what DataTables is but a quick Google search using the info you provided ("hide table_paginate in DataTables") gives some promising results https://www.google.co.uk/search?q=hi...+in+DataTables

    I assume this is a jQuery plugin? Have you consulted the documentation? Usually, a search (i.e. find in page via CTRL+F on the documentation page) on logical/related words will lead you to your answer (try 'paging', 'pagination', 'hide', 'display'). Plugins tend to have a settings/options list so look on the website for that.

    Have you also asked the plugin's developer community? Usually it is better to go to the source - check their forums or ask the developer because it's likely that they've been asked similar questions before and will more quickly be able to provide an answer. They'll also be more familiar with their manual/documentation/api/settings in order to direct you to the most helpful spot - more so than we are.

    Just a note for future reference, when you ask a question about a script, please provide a link to that script so we know what you're talking about. Unfortunately we aren't mind readers.
    Last edited by Beverleyh; 04-16-2016 at 07:21 AM.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. paginate this data
    By ianhaney in forum PHP
    Replies: 25
    Last Post: 02-17-2016, 06:44 PM
  2. magnify and paginate
    By commic in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 07-18-2012, 01:19 PM
  3. Resolved New: How do I paginate?
    By Download in forum PHP
    Replies: 5
    Last Post: 06-23-2010, 02:08 AM
  4. Paginate carousel?
    By acctman in forum Looking for such a script or service
    Replies: 1
    Last Post: 11-04-2008, 01:05 AM
  5. Single display line rotating/scroll text display.
    By acctman in forum Looking for such a script or service
    Replies: 1
    Last Post: 08-04-2008, 03:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •