djavaui / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 0 forks source link

Prevent table reload when cell is updated in the server-side mode #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Setu
1. Setup the datatable in the server-side processing mode
2. Edit and change any cell
3. UpdateData request will be sent to the server-side, but current page will be 
reloaded because DataTables do not know is the position of the edited cell same 
(it should be reordered on the server side and moved if needed)

It would be good to prevent this in some cases:
1. When cell that is edited is not placed in the column that is used in current 
ordering table should not be reloaded
2. If cell content is change so it is still in the correct order (compare it 
with previous and the following cell)

If second condition is to hard to check first should be good enought. In the 
second condition should be considered various types of comparation that can be 
applied (plain text, html, etc) so default DataTables sorting would not be 
broken.

Original issue reported on code.google.com by joc...@gmail.com on 13 May 2011 at 7:20

GoogleCodeExporter commented 8 years ago
There are too complex rules for stopping reload.

Original comment by joc...@gmail.com on 29 Sep 2011 at 8:43