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
sathishsfdcsathishsfdc 

display pageblock based on tab

Hi,

I have a requirement to displaydifferent  pageblocks based on the tab which i click.Any sample examples would be helpful
Pankaj_GanwaniPankaj_Ganwani
Are you using apex:tabPanel tag to show tab bar on your page? If so, then you can directly wrap related pageblocks within tabs itself. Example:

<apex:tabpanel>
<apex:tab>
<apex:pageBlock/>
</apex:tab>
<apex:tab>
<apex:pageBlock/>
</apex:tab>
​......
</apex:tabPanel>