In jQuery datatable, how to dynamically bind checkbox columns when bind server data?
My code is:
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 above code, how to add a column column in front of the column "Order No.".
source
share