manuelgtz / jquery-datatables-editable

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

bDeferRender + makeeditable not work #141

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

pagination, afte 1º page makeeditable noty work

I have datatable.net set bDeferrender = true when go to 2,3... page on 
pagination, makeeditable not work.

see my code below:

$("#dt_" + tab_name).dataTable({
"bDeferRender": true,
/* "bStateSave": true,*/
"bRetrieve": true,
"bPaginate": true,
"bFilter": true,
"bJQueryUI": true,
"bAutoWidth": true,
"oLanguage": {
"sInfo": "Got a total of _TOTAL_ entries to show (_START_ to _END_)",
"sSearch": "Search:",
"sZeroRecords": "No data found"
},
"iDisplayLength": 20,
"sScrollY": 350,
"sScrollX": "100%",
"sPaginationType": "input", //"full_numbers",
"oTableTools": { "aButtons": [{ 'sExtends': 'text', 'sButtonText': 'Add New 
Record' }, oDTExportButton.Excel(), oDTExportButton.CSV()] },
"aaData": eval(oMOSData.Data),
"aoColumns": eval(oMOSData.Column)
, "sDom": '<"H" pfT><"minimalHeight" t>'
, "fnInitComplete": function ()
{

setTimeout(function ()
{
obj.MakeEditable(tab_name);
hideWait();
}, 5);
hideWait();
}
});

obj.MakeEditable(tab_name); is a simple function like
obj.MakeEditable = function (tab_name)
{
var oTableToEdit = $("#dt_" + tab_name).dataTable();

oTableToEdit.makeEditable({
"TableName": "dt_" + tab_name,
oKeyTable: {},
sUpdateURL: function (value, settings)
{
oMOSData.fnUpdate(value, this, oTableToEdit, tab_name);
return value;
}
});
}

Original issue reported on code.google.com by rlatig...@gmail.com on 30 Nov 2012 at 3:09