show columns based on the field selected on front end
show columns based on the field selected on front end

Suppose in the front end i have list of 10 columns eg: firstName,Middlename,lastnaem,dob etc.
user can select any number of columns from the list and datatable should show only the selected columns.
from the backend i am bringing data of all the field and setting them in column, but how to show only certain number of columns.
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Have you looked at this?
https://datatables.net/reference/button/colvis
Yep, and here's a working example,
Colin