Visualforce - EnhancedList Component

EnhancedList Component:

The Enhanced List view is used to show the list of records in the visualforce page. 


<apex:page > <apex:enhancedList height="400" type="account"/> </apex:page>



What we need to do is to specify the type with the name of the object which you want to show. It may a standard object or a custom object.

Also the Enhanced List view provide a way to specify the ListId ie. you list view value Id so that it will display results based on it.
 
<apex:enhancedList height="400" listId="00B90000005P6p2"/>
Specifying the listId will be display results based on it. 



Also the enhanced List view provide a way to specify width, height of it. The main advantage of enhanced list view from normal list view is, this uses AJAX which doesn't reload the page fully. Instead of it refresh the result with the list view itself.

Also you can specify the no of records to be displayed in a page using rowsperpage attribute

  <apex:enhancedList height="400" type="account" rowsPerPage="10"/>



Comments

Popular Posts