Author Topic: Hide/Show Columns - from dropdown only?  (Read 1941 times)

tcf

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 13
    • View Profile
Hide/Show Columns - from dropdown only?
« on: August 16, 2016, 06:23:10 pm »
I would like to implement this feature....

I've looked at your example here:
http://paramquery.com/pro/demos/showhide_columns

but cannot figure out how I could just have the dropdown only so I can select which columns to hide/show.

Would this be possible to implement ?

Thanks

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Hide/Show Columns - from dropdown only?
« Reply #1 on: August 16, 2016, 06:33:52 pm »
use maxDisplay: 0 in pqSelect.

Code: [Select]
                $(".columnSelector").pqSelect({
                    checkbox: true,
                    multiplePlaceholder: 'Select visible columns',
                    maxDisplay: 0,
                    width: 'auto'
                });