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

.reloadData() and saveState not working... #266

Closed
mwright112 opened this issue Mar 31, 2015 · 2 comments
Closed

.reloadData() and saveState not working... #266

mwright112 opened this issue Mar 31, 2015 · 2 comments
Labels
Milestone

Comments

@mwright112
Copy link

Hi there,

When using the reloadData() function it appears that saveState is ignored. If I am on page 2 and I reloadData() it takes me back to page 1.

Is this a bug or is reloadData() not the same as datatables ajax.reload()

@mwright112
Copy link
Author

Hi again.

Got around it by changing the reloadData function in angular-datatables.js

Line 1097: _oTable.ajax.url(ajaxUrl).load();

to

Line 1097: _oTable.ajax.reload( ajaxUrl, false ); // user paging is not reset on reload

@l-lin l-lin added the bug label Mar 31, 2015
@l-lin
Copy link
Owner

l-lin commented Mar 31, 2015

Thanks for noticing it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants