You need to sign in to do that
Don't have an account?
udaykalyank1.3923045490576467E12
remove scrollbar for an outputfield value in VF page.
Hi All,
I have a multiselect picklist value in an object . it contains around 40 values. Selected all the values. when i am reteriving the field in VF page through <apex:outputfield value ="{!abc__c.xyz__c}" /> am getting scrol bar for this field which i dont want.
I dont want all the values needs to be display....without scrolling down.
pleae help me on this ASAP.
I have a multiselect picklist value in an object . it contains around 40 values. Selected all the values. when i am reteriving the field in VF page through <apex:outputfield value ="{!abc__c.xyz__c}" /> am getting scrol bar for this field which i dont want.
I dont want all the values needs to be display....without scrolling down.
pleae help me on this ASAP.
The scrollbar can be shown on a visualforce page using the inline CSS Style: "overflow:auto" in an Output Panel.
And then Place your Datable inside the Output Panel.
<apex:outputPanel layout="block" style="overflow:auto;width:750px;height:250px" >
<apex:datable>
.
.
.
</apex:datable>
</apex:OutputPanel>
In the above style,
width:750px - enables the Horizontal Scroll Bar
height: 250px - enables the Vertical Scroll Bar
If you only need the Horizontal Scroll Bar, the height attibute can be removed.
Regards,
Ashish
You use this in output field to avoid scroll bar overflow:hidden;
<apex:outputfield value ="{!abc__c.xyz__c}" style="overflow:hidden"/>
Thanks