You need to sign in to do that
Don't have an account?

How to hide empty column in apex:table?
<apex:dataTable value="{!Contacts}" var="c"> <apex:column rendered="if all contacts has number"> <apex:outputText>{!c.number}</apex:outputText> </apex:column> </apex:dataTable>
For example, hide the number column if all contacts has no number.
Hi Jeffrey Cheung,
Please try this piece of code for your validation
Add rendered into your code
Hope it will help yo,
Regards,
Suraj
It would be set to true if all number field is null.
Just as an example:
Controller: Page:
Hope this helps!
Thanks
Please try the below code snippet and let me know the result.
Thanks