No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    q-table column sorting go back to first page

    Help
    2
    2
    249
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nulele last edited by

      Hello,

      is it the expected behaviour that q-table column sorting go back to the first page when in second page or more?

      If so, any chance to make it sorting in the current page?

      Thanks

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @nulele last edited by dobbel

        @nulele

        The sorting will sort the entire table not just the current page. That’s the expected/desired behavior in 99% of the cases.

        Let’s say you are on the second page of a sortable table with a price column. You then sort the price column to have the least expensive rows on top. If you would stay on the second page you will not see the items(rows) with the lowest price, but you would see the second page of the lowest price items(rows).

        You could implement your own sorting:
        https://quasar.dev/vue-components/table#Custom-sorting

        1 Reply Last reply Reply Quote 0
        • First post
          Last post