Pop Up menu with multiple select

I am trying to make a menu linked to a button. On click of the button, I want to have a pop up menu which gives me a list of attributes which allows multiple select. On selecting these attributes, the visibility of those columns should be set to true. On deselecting, visibility should be set to false. Is there any way to achieve this?

There is a multiple select DropDown:

Check also what I've already answered you in your other thread: