Input fields in table cells wiped out on loading JSON string

Input fields in table cells wiped out on loading JSON string

Madhu12Madhu12 Posts: 32Questions: 0Answers: 0
edited January 2013 in General
I have defined a HTML table in JSP and associated it with DataTables plugin (DataTables 1.9.4 with jQuery 1.8.1).

I have three columns in my table and the first column contains checkbox.

When I load data into table using aaData it wipes out the checkboxes even though I give mData as null for the first column. Please let me know where I am going wrong.

[code]
var oTable = $("#table-id").dataTable({
bJQueryUI: true,
bPaginate: true,
sPaginationType: "full_numbers",
bFilter: false,
bInfo: false,
aoColumnDefs: [
{ "bSortable": false, "aTargets": [ 0 ] },
{ "bSortable": false, "aTargets": [ 4 ] }
],
// bProcessing: true,
// sAjaxSource: '',
aaData : [{"col2":"1000","col3":"text here"},
{"col2":"1000","col3":"text here"}],
aoColumns: [
{ "mData": null },
{ "mData": "col2" },
{ "mData": "col3" }
]
});
[/code]

Thanks!
This discussion has been closed.