-
-
Notifications
You must be signed in to change notification settings - Fork 401
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
using splice() instead of push to add new items in table #749
Comments
What does your code look like for displaying |
Here is my HTML am just using ng-repeat
|
Is it possible your paginate code isn't displaying the new line because it's outside the number of records to display per page? |
No, the new line is displayed successfully, it is for that very reason i had to use |
Hmm, maybe it has something to do with the
|
Hi, I tried what you said but unfortunately it has not solved the problem |
Maybe try the |
Hello I am trying to use splice() instead of push to add new items in table. This is to support pagination with multiple pages, because when I have several pages and I add one item it goes to the end of the last page regardless of what the current page is.
That was very annoying so with splice i can insert it a the end of the current page, the only problem is that the editable row form doesn't automatically appear, I have to click edit button every time I add a new row.
Here is my
addEmptyRow()
function.How can I solve this ?
Thanks!
The text was updated successfully, but these errors were encountered: