• pagerAddRows not hiding initially

    By Thomas Adrian 1 decade ago

     

    I am using the pagerAddRows control and want to hide the "more" buttom if there are no more lines in the repeat to display.

    it looks like the disabledFormat property only works after click, I would like the more link not to display initially when the page is loaded if there is not enough rows.

    I know I can create a rendered script to control this, but I think the control should handle this.

     

    <?xml version="1.0" encoding="UTF-8"?>
    
    <xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">
    
     
    
    <xp:repeat id="repeat1" rows="25" value="#{javascript:20}"
    
    var="a">
    
    <xp:text escape="true" id="computedField1"
    
    value="#{javascript:a}">
    
    </xp:text>
    
    </xp:repeat>
    
    <xe:pagerAddRows id="pagerAddRows1" for="repeat1"
    
    disabledFormat="hide" text="More" rowCount="30">
    
    </xe:pagerAddRows></xp:view>
    
     
    
    • Bug fixed

      By Philippe Riand 1 decade ago

      Will be in the next build. It only happened with the "non tabular" data model, like your JavaScript array.

      • ok,but

        By Thomas Adrian 1 decade ago

        not sure what you mean by non tabular data, but I got the same problem even if my repeat gets data from a view data source

        I am using dynamic content control

         

        Thanks for the fix, I hope this solves it.

        Thomas

        • I think it will

          By Philippe Riand 1 decade ago

          Let me know if you have a problem with the next build.