Get visible column name on server side

Get visible column name on server side

richapathakrichapathak Posts: 6Questions: 4Answers: 0
edited January 2017 in Free community support

Hi,

I am using datatable in asp. net c#, where am also providing show hide column using colvis. Now i want to save to the visible column name in database as bookmarked. if user login and select his saved bookmark, the page will load with his saved visible column and search filters as they will not want to re-select the choice every time. I need to save other search filter too. i am doing this server side. How can i get datatable visible column in server side.

Please help me out. below is my code for binding datatable.

$(document).ready(function () {
$("#table-listing").dataTable({
"bPaginate": false
"bInfo": false
"bFilter": true,
"order": [],
"ordering": true,
"scrollY": '78vh',
"responsive": true,
"scrollCollapse": true,
"dom": 'Bfrtip',
"bAutoWidth": false,
"buttons": [
{
extend: 'colvis',
collectionLayout: 'fixed two-column'
}
],
});
});

This discussion has been closed.