Passing data from a hidden Column to aoColumns

Passing data from a hidden Column to aoColumns

jsamuel89jsamuel89 Posts: 14Questions: 0Answers: 0
edited June 2012 in General
Hi All,

I want to put a dropdown come Check box filter in my datatable.
For that i am planning to use columnFilter widget.The data will be filtered with checkBox type filter.

So how to send column data as parameter type in the aoColumns:

I have pasted my code here.In that to indicate i have passed a external 'temp' variable to aoColumn.

Please help!!!!!!

function getData()
{
var temp=['a','b']

if (typeof table == 'undefined') {
var oTable = $('#searchTable').dataTable({
'sAjaxSource':' onewaySearchBusQuery.php', "bPaginate": false,'sProcessing': true,
"sDom": 'W<"clear">lfrtip',
"oColumnFilterWidgets": {
"aiExclude": [1,4,5,6,7,8]
}

}).columnFilter(
{
sPlaceHolder: "head:before",
aoColumns:[{ type: "checkbox", values:temp},null,null,null,null,null,null,null,null]
});
}
oTable.fnSetColumnVis( 2, false );
oTable.fnSetColumnVis( 3, false );
}
This discussion has been closed.