<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
$(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