Hi am following the below link to implement hide/show columns from toolbar
https://paramquery.com/pro/demos/showhide_columns var $sel = $(".columnSelector"),
opts = [];
this.getColModel().forEach(function (column) {
if (column.hidden !== true) {
opts.push(column.dataIndx);
}
})
//initialize the selected options corresponding to visible columns in toolbar select list.
$sel.val(opts);
Till the here everything is working fine from the next line I am getting error
Uncaught TypeError: $sel.pqSelect is not a function //convert it into pqSelect.
$sel.pqSelect({
checkbox: true,
multiplePlaceholder: 'Select visible columns',
maxDisplay: 100,
width: 'auto'
});
Please suggest where I am doing wrong?