how to avoid the column of checkbox binding data from js array
how to avoid the column of checkbox binding data from js array
[code]
Domain
Price
Clicks
Update
Status
operation
[/code]
[code]$('#sample-table-2').dataTable( {
"aaData":[
["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"],
["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"],
["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"],
["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"],
["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"]
],
"aoColumnDefs":[{
"aTargets": [ 0 ],
"bSortable": false,
"mdata":null,
"mRender": function ( url, type, full ) {
return '';
},
"sClass": 'center',
}]
} ); [/code]
please tell me how to avoid "aaa" binding to targets[0],I want to skip it so that I can put six values to seven columns
I think the checkbox don't have bind any values because it is insignificance
Domain
Price
Clicks
Update
Status
operation
[/code]
[code]$('#sample-table-2').dataTable( {
"aaData":[
["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"],
["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"],
["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"],
["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"],
["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"]
],
"aoColumnDefs":[{
"aTargets": [ 0 ],
"bSortable": false,
"mdata":null,
"mRender": function ( url, type, full ) {
return '';
},
"sClass": 'center',
}]
} ); [/code]
please tell me how to avoid "aaa" binding to targets[0],I want to skip it so that I can put six values to seven columns
I think the checkbox don't have bind any values because it is insignificance
This discussion has been closed.
Replies