Skip to Content
avatar image
Former Member

how to implement sap.ui.table events.

Hi,

i am using sap.ui.table.

i want to get the values of the row when selected or deselected.

i am usign mode as "MultiSelect".

currently i am using "rowSelectionChange". from that i will use the oEvent.getParameter("id"), using this i will get the table id. and from that i will use getSelectedIndices() or getSelectedIndex(). but this doesn't return the index on deselect of row..

when i was searching for alternative i found the below below data...

in that i have

1. rowindex

2.rowIndices

can someone please tell me how to use this and get the index of selected or deselected row in the table.

sap-ui-table.jpg (89.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 09 at 09:09 AM

    Hi Chandresh,

    try below code:

    rowSelectionChange: function(oEvent){

    var oRowIndex = oEvent.getParameters().rowIndex;

    alert(oRowIndex);

    var oRowIndices = oEvent.getParameters().rowIndices;

    alert(oRowIndices);

    }

    Thanks,

    Prachi

    Add comment
    10|10000 characters needed characters exceeded