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
starlightstarlight 

Increase the number columns displayed in related list from 10 to say 15 using VF

Is there any way I can  increase the number columns displayed in related list from 10  to say 15 using VF or javascript or any other way??
Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

You can use apex:relatedList attribute pageSize in Visualforce. pageSize: number of records to display by default in the related list.
<apex:relatedList list="Contacts" pageSize="20" />

There's an idea which is active on the success community Change number of records visible in the related list, you can upvote this idea so that it gets available in the future.

https://success.salesforce.com/ideaView?id=08730000000Br1rAAC

Please refer to the below links which might help you further.

https://help.salesforce.com/articleView?id=000025257&type=1

https://help.salesforce.com/articleView?id=000005068&type=1

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
starlightstarlight

hi Khan,
thank you  so much for your reply.
I will try this option.
thanks ,
Dipti
 

starlightstarlight
Hi Khan,
I think this option is to increase the number of rows.
My question was to increase the number of coumns.(fields)
Is it possible to increase the number of columns by using VF page or any other way??
thanks in advance