This topic contains 5 replies, has 2 voices, and was last updated by Jai Jai 1 year, 7 months ago.

Datatable info not showing corrent "end" value


  • asidre
    Participant

    Posts: 25
    Member Reply #12065

    Hi I have defined translate.toolbar.pagination.items.info as below

    info: '{{start}} ~ {{end}} / Total {{total}} orders'
    

    However end value is not showing correctly. Have a look at the screenshot attached.

    From the server response i included perpage, page, pages, total in meta.

    What am i missing?

    • This topic was modified 1 year, 7 months ago by  asidre.
    Attachments:
    You must be logged in to view attached files.
    Jai
    Jai
    Keymaster

    Posts: 2715
    Support Staff Reply #12080

    Hi 🙂

    Is there any JS error in the console?

    Thanks


    asidre
    Participant

    Posts: 25
    Member Reply #12094

    No error on the console.
    Any ways to set this value directly?

    Jai
    Jai
    Keymaster

    Posts: 2715
    Support Staff Reply #12097

    Hi 🙂

    Can you send the server response meta? Perpage, page, pages and total. We need to check.

    These values are required for server pagination.

    For local pagination no required.

    Thanks

     


    asidre
    Participant

    Posts: 25
    Member Reply #12107

    Having inspected the response data, it seems that the perpage value came in a string type.
    Converting it to number type resolved the issue.

    Thank you!

    Jai
    Jai
    Keymaster

    Posts: 2715
    Support Staff Reply #12115

    Hi 🙂

    Thanks for your findings. Good luck with the project.

    Thanks

You must be logged in to reply to this topic.