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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -