function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
venu kingvenu king 

How To Make <apex:Column> show or hide depends on selected columns in <apex:pageblocktable>

Hi Everyone.

 

I Had 10 <apex:columns> in My VF  page but here i want to make user to select which columns to be shown in apex:pageblocktable and remaining should be hiddden 

 

please anyone help me 

 

 

Thank You 

 

venu kalluru

 

Deepa.B.AnkaliDeepa.B.Ankali

@venu king,

 

Make use of rendered attribute in column tag. You can use boolean wherever required. Let me know if you want me to explain in bit more detail.

venu kingvenu king
Hi

Thank for your Replay.... I Tried it But after Refreshing (or)
Reloading VF Page its goes to default page . i want to save it
permanently the according to user select. (LIKE
CREATE NEW VIEW FOR RELATED LIST LINK )
Deepa.B.AnkaliDeepa.B.Ankali
@venu king,

If you want to save data, then save the user entries in an object. Next time when you load the page, query that object and display the result in page.