cancel
Showing results for 
Search instead for 
Did you mean: 

select first row by default in sap.m.table for which data is coming from OData

Former Member
0 Kudos

Hi,

I am facing trouble to select the first row by default automatically.I used sap.m.table for which data is coming from odata.Please help me to achieve this.

Regards,

Koti Reddy

Accepted Solutions (1)

Accepted Solutions (1)

Qualiture
Active Contributor

If you would have tried using the SCN search, you'd have found the exact same question which was asked some 10 days ago

Former Member
0 Kudos

Thank You, I might have missed the perfect Search!!

It is exact link which I need. I used below code from updateFinished() method to set initial row as selected as data comes from OData.

var ventable=this.getView().byId("table");

  var venitems=ventable.getItems();

  venitems[0].setSelected(true);

Regards,

Koti Reddy

Answers (0)