From dc5983045457ece5882611d3db6e508b2f79e375 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Fri, 13 Apr 2012 15:20:09 +0100 Subject: [PATCH] Update: Update the text for the two jEditable examples --- examples/api/editable.html | 1 + examples/server_side/editable.html | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/api/editable.html b/examples/api/editable.html index 4e26ea85..154baf83 100644 --- a/examples/api/editable.html +++ b/examples/api/editable.html @@ -45,6 +45,7 @@

Using DataTables in-combination with the excellent jEditable plugin for jQuery allows you to produce a table which can have individual cells edited. The table can then be updated such that filtering, sorting etc. will all work as expected. This is showing in the demo below.

The example shows how a table element can be edited (you could limit to a particular column if you wish using the selector), posted to the server (for saving in a database or whatever) and then placed back into the DataTable. The server's processing in this example simply appends the string '(server updated)' to indicate that something has happened on the server.

Note also that this example makes use of the information in the 'ID' attribute of the TR element. This is useful in order to tell the server what row is being updated - this can readily be expended to include column information as required. Further to this, it is worth noting that to use this type of example with DataTables' server-side processing option, you must use fnDrawCallback to apply the event listeners on each draw.

+

Finally, if you are interested in a full CRUD implementation for DataTables, check out the Editor plug-in for DataTables, which provides a flexible and easy to use create, edit and delete environment for DataTables controlled tables with full server interaction.

Live example

diff --git a/examples/server_side/editable.html b/examples/server_side/editable.html index 5a855625..8b07b00c 100644 --- a/examples/server_side/editable.html +++ b/examples/server_side/editable.html @@ -39,6 +39,7 @@

Preamble

When using server-side processing and you wish to integrate the jEditable plug-in for jQuery with DataTables, you need to consider that each time data is returned from the server, DataTables will build new DOM elements - so these need the jEditable event handlers applied to them. This is down through use of the fnDrawCallback function.

+

If you are interested in a full CRUD implementation for DataTables, check out the Editor plug-in for DataTables, which provides a flexible and easy to use create, edit and delete environment for DataTables controlled tables with full server interaction.

Live example