Hurry Up, Ends March 14!
Open Closed

Changing GRID display items number #1092


User avatar
0
jliu created

Dear Sir/Madam,

I am a developer, developing a web application with Angular using ABP FrameWork.

I created a grid using tag <ngx-datatable>. As default, it shows 10 items per page. I am asked to change to other number. How can I do it please.

Thanks and regards,

John


2 Answer(s)
  • User Avatar
    0
    Mehmet created

    Hi @jliu

    You can change the ListService defaults like this:

      constructor(
        private bookService: BookService,
      ) {
        // change ListService defaults here
        this.list.maxResultCount = 20;
      }
    

    You can achive this by changing the maxResultCount variable of the ListService. See the Working with Lists document for more information.

    If you are not using the ListService, you can see the ngx-datatable paging examples.

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08