cancel
Showing results for 
Search instead for 
Did you mean: 

how to implement sap.ui.table events.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member

Hi Chandresh,

try below code:

rowSelectionChange: function(oEvent){

var oRowIndex = oEvent.getParameters().rowIndex;

alert(oRowIndex);

var oRowIndices = oEvent.getParameters().rowIndices;

alert(oRowIndices);

}

Thanks,

Prachi