Interactive GRID | Rows Per Page on Toolbar

Referred from John’s cookbook sample app.

  • Interactive GRID Attributes
  • Advanced
    • JavaScript Initialization Code
    function(config) {
        var $ = apex.jQuery,
            toolbarData = $.apex.interactiveGrid.copyDefaultToolbar(),
            toolbarGroup = toolbarData.toolbarFind("actions1");
    
        toolbarGroup.controls.unshift( {
            type: "SELECT",
            action: "change-rows-per-page"
        } );
        // Optional if you want the word Rows like IR had. But this is probably bad for  
        // accessibility because it isn't a label element like in IR  
        //toolbarGroup.controls.unshift( {  
        //    type: "STATIC",  
        //    label: "Rows"  
        //} ); 
        config.toolbarData = toolbarData;
        // the workaround for 5.1 bug given in the forums is no longer needed
        return config;
    }
    • Pagination
    • Type – Page