KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Datatables hide and show column #1735

Closed ankit raj opened this topic on on Nov 26, 2020 - 3 comments

ankit raj commented on Nov 26, 2020

Hello , I am using a datatable with a lot of columns and want to give user a checkbox showing all the column names which he can hide/unhide. how do i achieve it without sending extra backend request since i already have the data?

KoolReport commented on Nov 27, 2020

You can use a CheckBoxList to let user check which columns he want to show. Base on user inputs, you will choose only those columns to insert into "columns" property of DataGrid.

ankit raj commented on Nov 27, 2020

Thanks

David Winterburn commented on Nov 30, 2020

Another client-side solution I would advise is using Buttons plugin, which has an option to show/hide columns conveniently:

https://www.koolreport.com/docs/datagrid/datatables/#plugins-(version-%3E=-4.0.1)

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed
solved

DataGrid