Get aaData row from checked.
Get aaData row from checked.
WilMeira
Posts: 2Questions: 2Answers: 0
I need get the row data selected by the checkbox, the Table is dynamically loaded with Json. I tried a few examples but I can not bring the data of the selected lines, someone help me?
$(document).ready(function () {
$('#example').dataTable({
"bPaginate": false,
"bFilter": false,
"bInfo": false,
"aaData": testeTabela,
"aoColumns": [
{ "sTitle": "Selecionar", "mDataProp": null, "sDefaultContent": "<input type='checkbox' id ='check01'></input>", "bSortable": false },
{ "mDataProp": "ProductNumber", sTitle: "ID" },
{ "mDataProp": "Name", sTitle: "Nome do Produto" },
{ "mDataProp": "DefaultUoMId.Name", sTitle: "Unidade" },
{ "mDataProp": "new_rs_PrecoVenda", sTitle: "Preço Unitario" },
{ "mDataProp": null, sTitle: "Qtde", "sDefaultContent": "<input type='text' id='QtdeId' required='required' value='0'/>" },
{ "mDataProp": null, sTitle: "Total", "sDefaultContent": Total }
]
});
});
This discussion has been closed.