Enhanced Pableblock Table For Visualforce Pages

Thursday, February 28, 2013


[Update : Have a look at awesome new PageblockTable Enhancer Component here]


Well I am really happy that finally my work on Enhanced Pageblocktable is almost complete.The Sortable Pageblocktable component is now Enhanced Pageblock table with added functionality of pagination , athough the Sortable Pageblocktable component still exists.

Now you can add functionality like pagination, sorting without any extra coding.The component uses the jQuery table sorter plugin to add the sorting and pagination features to the page block tables.

Features of Enhanced Pageblock Table

  • Sorting : Supports sorting of columns by clicking at the column header.



  • Pagination : Supports client side pagination of the table.
  • Native Look And Feel : Enhanced Pageblock table component uses the similar look and feel of a standar pageblock table and mixes with the existing UI easily.

How to use? 
Pretty Simple!, just use the below code.

Parameters
sObjList : List of sObject To display
fieldList : List of field API names to display in the table as column.


<c:EnhancedPageBlockTable sObjList="{!accounts}" fieldList="{!fields}"/>         

4 comments:

  1. Hi - Currently the number of records displayed defaults to 10. How can I change this to 20, 30, or 40? I see the dropdown selection to change the number of records displayed after the initial page load, but I'd like it to default to a different number (when it first loads).

    Thanks.

    ReplyDelete
  2. Hi
    It' very nice post.

    I have same requirement like above some thing extra, to provide Check box for each record.

    So can you suggest me how to provide check box in this enhanced table.

    thanks in advance

    ReplyDelete
  3. using standardsetcontroller with wrapper class

    ReplyDelete
  4. Awesome Post, But I have requirement to open the individual record by click on link of the record like href link, please suggest thanks.

    ReplyDelete