editing a order column in a table
editing a order column in a table
I have a column in my table named order which is numeric and contains a value that is used by a server process to thread contents in a certain order.
From a user experience I want to allow the user to edit the field in a table, and after a change has been made I want to refresh the the data on the page.
Is something like this possible with DataTables?
From a user experience I want to allow the user to edit the field in a table, and after a change has been made I want to refresh the the data on the page.
Is something like this possible with DataTables?
This discussion has been closed.
Replies
Yes indeed this is possible, although exactly how you achieve it depends on your exact set up. For example:
1. If you have just static data and are reloading the information using something like fnReloadAjax then the sorting will be done automatically for you.
2. If you have "input" or "select" elements, and are updating the information on the server-side using Ajax, and not really getting any information back, then you can do DOM based sorting on the client-side (eg. http://datatables.net/examples/api/dom_sort.html )
3. If you are using server-side processing, then the database on the server-side should probably just take care of all this for you.
Always more than one way! :-)
Regards,
Allan