-
Notifications
You must be signed in to change notification settings - Fork 877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete not working? #1138
Comments
did you try to call the load method? |
What do you mean by calling hte load method? I load data, then I remove a row, and load old data? I don't get it. Can you elaborate please? |
I think that you did could manually update with refresh method or load method |
why pushing all the data to the server? |
There seems to be condition issue at https://github.com/akveo/ng2-smart-table/blob/master/projects/ng2-smart-table/src/lib/lib/data-source/local/local.data-source.ts#L50 For now, here is a hack that should work.
In short, remove the element urself using the datasource. |
When I delete a row, the row disappears from the view, but it is still present in the data source. So when pushing data to server (with source.getAll()), anything has changed.
I am using internal mode, and also, no event is raised when I try to delete it.
On settings i have
delete.confirmDelete = true;
on html:
(deleteConfirm)="onDeleteConfirm($event)"
on ts:
but it is never called...
Checked everything already in the docs:
https://akveo.github.io/ng2-smart-table/#/documentation
Any ideas?
The text was updated successfully, but these errors were encountered: