You need to sign in to do that
Don't have an account?
prady-cm
how to use colspan in VF pages
i have a VF page code
<apex:pageBlockSection collapsible="false" columns="2" > <apex:inputField value="{!Opp.field1__c}"/> <apex:inputField value="{!Opp.field2__c}"/> <apex:outputField value="{!Opp.field3__c}"/> <apex:outputField value="{!Opp.field4__c}"/> </apex:pageBlockSection>
I want to have a command button inside the blockSection. Can we have something like a colspan on table to merge the first line to a single column to hold the command button?
Hi prady-cm,
I dont know about colspan in visualforce. But if you are using HTML Table then it is possble.
Try below code to hold your commandbuttons in pageblock section.
Hope this helps.:)
Thanks,
Devendra
Thanks Devendra...
But my command button is not for the whole page, but just for that section.
This button just would refresh this particular block after processing some conditions.
Try adding another pageBlockSection with one column above your pageBlockSection, and put the button in the former.
Thanks.
Hi,
Try this
<apex:commandbutton location="top/bottom/both"> </apex:commandButton>
You can use one of three for displaying commandButton on your VF page.
Next , you can use rendered attribute to display commandButton based on particular condition.
For e.g.
<apex:commandbutton location="top/bottom/both" rendered="{Specify your condition}"> </apex:commandButton>
Thanks,
Devendra
Thanks Devendra and soof.
I added a blocksectionitem with a empty output text.
This gave me the output which i was looking for