How to give conditionally column definition for a column, Please can you give any help
How to give conditionally column definition for a column, Please can you give any help
 polachan            
            
                Posts: 101Questions: 50Answers: 0
polachan            
            
                Posts: 101Questions: 50Answers: 0            
            how can I give columnDefs conditionally
for example
var  option='Leavers'
if options = 'Leavers' then I have to hide the column 2 else I have to hide the column 3 .
all the cases all column definition  "className": "dt-center", "targets": "_all"
Please any help would be very appreciated
Regards
Pol
This discussion has been closed.
            
Answers
Something like this:
You can see it here:
http://live.datatables.net/lomepowa/1/edit
Kevin