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

Dynamically created header/footer

$
0
0
Hi Allan

I am generating aoColumnDefs server-side and then rendering as normal. For some columns I would like a select filter header, for some an input filter header and for some no filter. I have been playing with a function in fnInitComplete, going through all the aoColumnDefs and creating a footer for each but I can't see an easy way to decide what type of filter to apply

I can't see anything obvious in the docs, can I achieve this using aoColumnDefs maybe something like

'mData': columnName,
'sClass': niceClass,
'footerType': 'select|input|null',

Viewing all articles
Browse latest Browse all 82022

Trending Articles