jquery - dynamic row to X-Editable -
i using x-editable plugin in asp.net jquery datatables edit table. how add dynamic row x-editable? example:
$("#mydatatable").datatable ({ ... "fnrowcallback": function (nrow, adata, idisplayindex, idisplayindexfull) { (f = 0; f < nomcol.length; f++) { if (typechamp[f] == "text") { $('td:eq(' + f + ')', nrow).editable({ ... }); } if (typechamp[f] == "date") { $('td:eq(' + f + ')', nrow).editable({ ... }); } if(typechamp[f]=="select") { $('td:eq(' + f + ')', nrow).editable({ ... }); } } } });
Comments
Post a Comment