customizing the Showing xx to yy of zzz entries

customizing the Showing xx to yy of zzz entries

VadivelVadivel Posts: 10Questions: 1Answers: 0
edited August 2013 in DataTables 1.9
Hi Friends,
i want to customize the showing entries at button when i click First,Previous,Next and Last in my data table of loading data from server-side on my every click . pls help to achieve this one.now defaultly use "iTotalRecords" but not working.

Replies

  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    See the i18n options: http://datatables.net/usage/i18n
  • VadivelVadivel Posts: 10Questions: 1Answers: 0
    Thank u allan!
  • VadivelVadivel Posts: 10Questions: 1Answers: 0
    Hello allan,
    From ur above link i can able to change the text "sInfo": "Got a total of _TOTAL_ entries to show (_START_ to _END_of _TOTAL_ )" only, but i want to change the counts that display to end user.
    For eg: I have totally 1000 records to show by using Server side processing i show first 50 records "showing 1 to 50 of 1000 entries ", again when the user click Next button i do ajax call to reload next 50 records that mean "showing 51 to 100 of 1000 entries " etc. The showing entries value doesn't seem to change at all. it always show 1 to 50 of 50 entries. How can i update these values on every page click with every ajax response?

    Thanks,
    Vadivel
  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    It sounds like you haven't correctly implemented server-side processing. Please chec. That you are returnsBing the correct values for iDisplayRecords and iDisplayTotalRecords - they should be the same unless filtering is applied, as noted in the documentation. Please also link to a test case.

    Allan
This discussion has been closed.