0

According to this thread, I tried to call api.setColumnDefs and api.setRowData to dynamically load new table definition with new corresponding data, and it failed.

I guess it comes from that the plugin tries to refresh GUI after api.setColumnDefs but before api.setRowData. Here is the code at Plunker (it is based on Advanced AngularJS 1.x Example),.

Please review and help: what is the correct way to do it?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
zipper
  • 377
  • 1
  • 5
  • 18

1 Answers1

0

This is solved by calling api.setRowData(); to clear all data before calling api.setColumnDefs to reset column-defintions.

zipper
  • 377
  • 1
  • 5
  • 18