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

Re: how can I insertRow which has button with press event?

$
0
0

Hi,

I find the solution.

could I write like this:

 

var deleteButton = new sap.ui.commons.Button({

  text:"delete",

  press: function(oControlEvent){

  var currentcontent = oControlEvent.getSource().getParent().getBindingContext();

  this.deleteRow(currentcontent.getObject());

  }

  });

this.oTable = new sap.ui.table.Table({

        minAutoRowCount:5,

        visibleRowCountMode:sap.ui.table.VisibleRowCountMode.Auto,

        id:"oTable",

        columns:[

        new sap.ui.table.Column({

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

        template: deleteButton})]

        });


Viewing all articles
Browse latest Browse all 8411

Trending Articles



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