how to remove column visibility button in datatable.

how to remove column visibility button in datatable.

varunpujara51@gmail.comvarunpujara51@gmail.com Posts: 2Questions: 1Answers: 0

i want to hide column visibility button from my datatable.it's automatically come from binding time.so,how's this possible.

Answers

  • tangerinetangerine Posts: 2,357Questions: 18Answers: 261

    A column visibility button is not present by default. It must be added somewhere in your own code.

  • varunpujara51@gmail.comvarunpujara51@gmail.com Posts: 2Questions: 1Answers: 0

    you are right.my code is
    "sDom": "<'dt-toolbar'<'col-xs-12 col-sm-7 'f><'col-sm-5 col-xs-5 hidden-xs'C'l'T>>r"
    and i have remove only 'C' after hidden-xs class in above line.so i have sovled my problem.
    "sDom": "<'dt-toolbar'<'col-xs-12 col-sm-7 'f><'col-sm-5 col-xs-5 hidden-xs'l'T>>r"
    thanks.

Sign In or Register to comment.