Hi
i am using grocery crud in codeigniter. when i click the delete icon in the list the record get deleted but the page will not get refresh so please tell me how to refresh the list after deleting the record
Thanks
⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠
Posted 04 July 2013 - 07:19 AM
Hi
i am using grocery crud in codeigniter. when i click the delete icon in the list the record get deleted but the page will not get refresh so please tell me how to refresh the list after deleting the record
Thanks
Posted 04 July 2013 - 08:39 AM
Hello [member=vinayak] and welcome to the forums.
So let me understand this correctly.
You press the delete button on a record and the record is getting deleted and it dissapears? Or it stays there?
If it dissapears then there is nothing worng with it. You don't need any refresh.
But if you press the delete button and the record stays there then yes this is a problem.
If that's the case please post your table's structure and the code from your controller.
Posted 14 November 2013 - 07:22 AM
Greetings to all.
I have a similar problem as in this topic.
I looked at this topic /topic/421-multiple-delete-selection/
I did a multiple-selection-delete. The actual function in the controller I did empty (NO DELTE in DATABASE, just filtering by id). So I have deleted records only from list, but when I press refresh (or next page, or print, or export) - deleted records appear again. As they filter and do not show.
** I need to remove some of the entries (filter) by id and make a printout. (database real-estate)
Posted 15 November 2013 - 07:40 AM
So we will not see the entry in the display, and when cleaning the filter - all entries will be displayed again.
Posted 15 November 2013 - 09:28 AM
which theme do you use?
Posted 15 November 2013 - 09:38 AM
hey Victor. im use flexgrid
Posted 15 November 2013 - 10:33 AM
try to use sessions to keep your deleted rows id . and use the method "where" to set rows which are not shown. And ,make a function "clear session data"
to delete these id from the session value.
sorry for my English.