In jQuery datatable, how to bind a checkbox column dynamically, when binding server data?
My code:
oTable = $("#tblPreProcess").dataTable({
bProcessing: true,
bLengthChange: false,
bFilter: true,
sAjaxSource: '@Url.Action("FetchPreprocessOrders", "Admin")',
aoColumns: [
{ sTitle: "Order No", bSortable: false ,bSearchable: true},
{ sTitle: "Vol.Weight", bSortable: false },
{ sTitle: "Content", bSortable: false, },
{ sTitle: "Bag Number", bSortable: false }
]
});
In the code given above, how do I add a checkbox column before 'Order No' column.