Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 29, 2014 at 01:37 PM

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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