Starts in:
1 DAY
11 HRS
7 MIN
38 SEC
Starts in:
1 D
11 H
7 M
38 S
Open Closed

ngx-datatable maxresultcount error #346


User avatar
0
yfc created

My current project is core angular version 3.0.5. The number of display entries on the NGX datatable page cannot be configured. I need the table to display 30 items, but the display effect is still 10. The background interface requests return the normal number of entries, but the skipcount value is still 10, and the maxresultcount value is normal 30

  • **ABP Framework version:3.0.5
  • UI type: Angular / MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:yes
  • Steps to reproduce the issue:yes Code screenshot: component html f12

2 Answer(s)
  • User Avatar
    1
    armanozak created

    Hi,

    Please remove the limit binding on the datatable and try setting the maxResultCount property of the ListService instead:

      constructor(
        public readonly list: ListService,
      ) {
        this.list.maxResultCount = 30;
      }
    

    Please let me know if this resolves the issue.

    I wish you a very nice day.

  • User Avatar
    0
    yfc created

    Thank you very much. Your method has solved my problem.

    I wish you a very nice day.

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