CodeIgniter Forums
Datatables Refresh After delete - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Datatables Refresh After delete (/showthread.php?tid=60748)



Datatables Refresh After delete - El Forum - 06-19-2014

[eluser]Unknown[/eluser]
Hi thanks for the library I like it. I am new on this one. can some one help me how will I edit the data then refresh the table after done editing.


Datatables Refresh After delete - El Forum - 06-19-2014

[eluser]InsiteFX[/eluser]
Code:
redirect('controller_name', 'refresh');



Datatables Refresh After delete - El Forum - 06-19-2014

[eluser]Unknown[/eluser]
Hi InsiteFX but doing that will refresh the entire page not the table.


Datatables Refresh After delete - El Forum - 06-19-2014

[eluser]InsiteFX[/eluser]
The MySQL database will refresh the table its self. I you need the table refreshed in your application then you need to re-run your controller that loads the table.



Datatables Refresh After delete - El Forum - 06-19-2014

[eluser]ivantcholakov[/eluser]
@dyjathan

How do you edit data - on a separate page or within a pop-up dialog?
Do you use server-side processing?
Do you have some knowledge about Datatables javascript API? I mean features like table redraw, and saving state? What version of the API do you use - the old dataTables or the new one DataTables?

You are asking about very specific things in this forum. I think, the Datatables site is very well documented, it has many live examples that help you to figure what to do.

Edit: My remarks are in case if you are talking about http://datatables.net/