Topic: DataTables Async Update - Documentation Error

eworthington1gmail-com premium asked 2 years ago


Expected behavior

When performing a datatables Update after initialising the table, the data in the table should update when only specifying the updated rows, as per the documentation.

Actual behavior

The documentation example specifies an array action (map) to produce the new array of rows from the data returned by the async fetch. If only the new rows are specified, the table does not draw. You must respecify the rows AND the columns for the updated data to show, even if the columns haven't changed.

Resources (screenshots, code snippets etc.)

INVALID: table.update({rows: newRows}, {loading:false})

VALID: table.update({rows: newRows, columns: sameColumns}, {loading:false})


Kamila Pieńkowska staff answered 2 years ago


Thank you for letting us know about this. We will fix this soon.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.4.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No