Issues with rendering apex caption when displaying dynamic data..

When you are displaying a grid of data using apex panel grids or apex data table components,Let us say we need to display a section heading on the first row and center it. You would use a facet component using apex header facet which would work good. But if you are using apex columns and dynamically rendering text based on condition, the header facet would display in one column instead of the entire row is annoying.

So to solve this problem , populate the columns attribute on your apex datatable or panelgrid so that apex knows the number of columns before hand. This would display the section header on the entire row.


Leave a Reply

Your email address will not be published. Required fields are marked *

Get free tips on Salesforce
Get free tips on Salesforce
We respect your privacy.