Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

255
Views
Material Table Server Side Pagination Rendering

In server side pagination, we have page size options 5, 10, 20.

page size options

I changed the page size option 20 then I open the modal it changed the page size option 5. How to resolve this issue.

const getAllData = (query) => new Promise((resolve) => {
          // prepare the data:
          let url = `${endPoints.profile.getAll}?`;
          if (query.search) {
            url += `name=${query.search}`;
          }
          url += `&page=${query.page + 1}`;
          url += `&limit=${query.pageSize}`;
    
          Api.get(url).then((resp) => {
            const data = resp?.data?.res.map((d, index) => ({
              id: index + 1,
              user_id: d?.user_data?.user_id,
              name: d?.user_data?.name,
              email: d?.user_data?.email,
              avatar: d?.user_data?.avatar,
              phoneNumber: d?.user_data?.phone_number,
              pmcNumber: d?.user_data?.pmdc_number,
              cnicNumber: d?.user_data?.cnic_number,
              specialization: d?.user_data?.specialization,
              experience: d?.user_data?.experience,
              gender: d?.user_data?.gender,
              qualification: d?.qualification,
              services: d?.services
            }));
    
            resolve({
              data,
              page: query?.page, // current page number
              totalCount: resp?.data?.complete_data // total row number
            });
          });
        });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!