Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82228

Add check box in header column,check box in item column in grid server server-side processing

$
0
0
<script type="text/javascript">



$(document).ready(function () {
var oTable = $('#grid').dataTable({

'bPaginate': true,
"sAjaxSource": 'Home/GetAjaxData',
'sPaginationType': 'full_numbers',
'iDisplayLength': 5,
"aoColumns": [
{
"mData": "ID",
"bSearchable": false,
"bSortable": false,
"fnRender": function (oObj) {
var str = '<input type=\"checkbox\" id=\'' + oObj.aData[0] + '\' name=\"cb\" value=\'' + oObj.aData[0] + '\' class=\"sel\" >';
return str;

}
},
{ "mData": "ID" },
{ "mData": "Name" },
{ "mData": "Address" },
{ "mData": "Town" }
]

// , "fnInitComplete": function () {
// new FixedColumns(oTable, {
// "iLeftColumns": 2,
// "iLeftWidth": 350
// });
// }

});

});


</script>

This is not workking..plz help

Viewing all articles
Browse latest Browse all 82228

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>