खुला हुआ बंद किया हुआ

Changing GRID display items number #1092


User avatar
0
jliu बनाया था

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 उत्तर (ओं)
  • User Avatar
    0
    Mehmet बनाया था

    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 बनाया था
    सहायता दल Automatic process manager

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

Made with ❤️ on ABP v8.2.0-preview Updated on मार्च 25, 2024, 15:11