how to change the current page to the one where a row is inserted?
how to change the current page to the one where a row is inserted?
lighe
Posts: 2Questions: 0Answers: 0
Hi,
First of all, thanks for a great plugin!
I'd like to give my users the ability to add new rows via a separate form (ajax).
However, if the table is sorted and pagination is enabled, then the inserted row might end up in a page other than the currently selected one. Which is a bit of a pain, because even with a proper success message near the 'add' button, I still think that the users will get confused.
So my solution to this is: add a new row, then change the current page to the page where the row has been inserted, then briefly highlight the row.
Any ideas on how to find out on what page the row has been inserted? :)
Thanks,
Alex
First of all, thanks for a great plugin!
I'd like to give my users the ability to add new rows via a separate form (ajax).
However, if the table is sorted and pagination is enabled, then the inserted row might end up in a page other than the currently selected one. Which is a bit of a pain, because even with a proper success message near the 'add' button, I still think that the users will get confused.
So my solution to this is: add a new row, then change the current page to the page where the row has been inserted, then briefly highlight the row.
Any ideas on how to find out on what page the row has been inserted? :)
Thanks,
Alex
This discussion has been closed.
Replies
Allan
any help would be appreciated.