Reset Colvis and Show all Columns without "Show All" button

Reset Colvis and Show all Columns without "Show All" button

GurupriyanGurupriyan Posts: 15Questions: 6Answers: 0
edited November 2019 in Free community support

Colvis not get reset while bind datatable. Need to reset Colvis . must show all columns after bind datatable. Need a function. Kindly help me ASAP

Answers

  • GurupriyanGurupriyan Posts: 15Questions: 6Answers: 0

    found the simple solution

    table.columns().visible(true); // To visible all columns in colvis collection
    $($.fn.dataTable.tables(true)).DataTable().columns.adjust(); //To Adjust column width
    
This discussion has been closed.