Skip to Content

RowRepeater-Show Less/Show original option

Hi All,

I am making use of RowRepeater control in my application. With the help of 'Show more' button which internally makes use of 'showMoreSteps' property I am showing the numbr of rows till it reaches the maximum number of rows available. Once the maximum rows are displayed,'Show more' button turns to disable mode.Now if I want to 'show Less number of rows or Original state of rows', how should I achieve it?

Thanks and Regards,

Sagar M Patil

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 13, 2015 at 09:16 AM

    Hi Sagar,

    I don't think this can be achieved through show more button. Since it is an internal control in sap.ui.commons.rowrepeater control and the event is not exposed.


    If you want to achieve it, then you got to place a button underneath the row-repeater. And in the press event of that button, you will say


    sap.ui.getCore().byId("rr1").resize(5);
    
    
    
    

    Check the sample here - JS Bin - Collaborative JavaScript Debugging

    (or) to see in Full Window - Row Repeater Sample

    Click on Show Less button, which is placed underneath the rowrepeater - In result, it will change the size of rowrepeater.


    Regards,

    Sai Vellanki.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 13, 2015 at 06:40 AM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.