0

I have a Visualforce Page tab where I have used <apex:enhancedList>for displaying list view of my custom object like follow:-

<apex:enhancedList type="customObject__c" height="500" rowsPerPage="25" id="srvyPrgList"  rendered="{!NOT(displayStartPage)}"/>

When I open this Visualforce Page tab in lightning view <apex:enhancedList look and will be displayed like a classic sales-force view as follows:

enter image description here

If I have to convert this list view so as to get look and feel like lightning list view e.g like this

enter image description here

Anyone please advise what should be the alternative for <apex:enhancedListor any workaround to convert this classic view into lightning view.

  • if you want this view in lightning experience then you can navigate to list view using sforce.one.navigateToList('XXX_List view ID_XXX', 'My List view', 'customObject__c'); in JavaScript. – Sagar Thoriya Jun 9 '17 at 9:36
  • I don't think there is an equivalent yet. I think you will have to use the data tables design in the lightning design system and code it yourself. – Martin Lezer Jun 9 '17 at 9:37
  • 1
    you can now use lightningstylesheet=true in apex:page as below to convert it into lightning view. <apex:page lightningStylesheets="true"> – sf_user Sep 28 '17 at 15:56
1

Today there is no alternative for <apex:enhancedList>

You can have 2 workarounds:

  1. by code - use Strike component which is open, free and really good, and you can customize it by code to do whatever you want.

  2. From within the app builder add the Related List component to your record page for each list that you want to use:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.