Skip to Content
avatar image
Former Member

SAPUI5 Table row index issue

Hi All,

Can someone help me getting the index on selection of row?

I am able to get the index but the issue is visible row index is getting fetched on row click event.

For example:

Actual Row number in the column is 17.

As I have made visible row count to 5, the values when scrolled down, on click of the button event (image column), the index is coming between 0 to 4 only.

I am using Sap.ui.table.

Any help on this is much appreciated.

Thanks,

Venkatesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 20, 2017 at 07:58 AM

    Check this blog for your issues:

    https://blogs.sap.com/2014/04/08/understanding-sapuitabletable-in-10-minutes/

    Also, try to bind an event handler for the event rowSelectionChange. In this method, you should get the index in the data set.

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded

    • sap.ui.commons.segmentedbutton is deprecated. So please use sap.m.segmentedbutton.

      Meanwhile, what is the actual requirement? Is it to refresh the buttons? or Is it to get the selected button?

      Regards,

      Sharath