Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8430

Re: Button in Table

$
0
0

Hi Himanshu,

 

Sorry for the delayed response, For this you can make use of oEvent attribute passed to the event handler as follows.

oTable2.addColumn(new sap.ui.table.Column({

                     label: new sap.ui.commons.Label({text: "Web Site"}),

                     template: new sap.ui.commons.Button({

                            press: function(oEvent) {

                                  var rowIndex =  oEvent.getSource().getParent().getIndex();

                                  alert("Row Index is: "+ rowIndex);             

                            }

                     }).bindProperty("text", "linkText"),

                     sortProperty: "linkText",

                     filterProperty: "linkText",

                     width: "100px"                   

}

 

Thanks & Regards,

Vishweshwara P.K.M.


Viewing all articles
Browse latest Browse all 8430

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>