Page 1 of 1

hidden columns datatable primeui

Posted: 14 Mar 2018, 17:58
by jesusechn
hi i have one datable implemented with primeui
but i have one requirement y to hide columns in the datable so
how can i do this
Regards

Re: hidden columns datatable primeui

Posted: 02 Apr 2018, 19:28
by jesusechn
i develop some workaround that is repaint the data but in order to do this i created one div parent and in the child repaint the data

the parent div is tblllocal
in mi case i have one request that send me the configuration data table by rest, i got this configuration in one variable that i call table in the javascript

every time that i want to reconfigure the columns i delete the parent content div and create the table in one div that is the child that is table

$('#tbllocal').empty();
jQuery('<div/>', {
id: 'table',
}).appendTo('#tbllocal');
$('#table').puidatatable(table)

if some one has other solution please let me to know