打开 关闭

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