Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Reload data angular way gives Cannot reinitialise DataTable #302

Closed
yashikagarg13 opened this issue Apr 27, 2015 · 1 comment
Closed

Reload data angular way gives Cannot reinitialise DataTable #302

yashikagarg13 opened this issue Apr 27, 2015 · 1 comment

Comments

@yashikagarg13
Copy link

Hi

I am populating my data-table in angular way, i.e., I updates the model when ajax response is returned. For reloading data also, I call an API that brings the data and I updates the model. After clicking on reload button (which initiates the API to bring data) 5-6 times, I get popup with following message:

"DataTables warning: table id=DataTables_Table_4 - Cannot reinitialise DataTable. For more information about this error, please see http://datatables.net/tn/3"

I have 6 data tables on single page. and when reload for specific data-table's data is called, only its concerned model is changes.

Why is this happening??

@yashikagarg13
Copy link
Author

Used this fix #262, with a little change

  if(!angular.equals(newValue, _newValue))

instead of

  if(newValue !== _newValue)

worldwideweber added a commit to worldwideweber/angular-datatables that referenced this issue Jun 9, 2015
Restored the fix in l-lin#302
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant