Starts in:
1 DAY
10 HRS
6 MIN
50 SEC
Starts in:
1 D
10 H
6 M
50 S
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.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06