on 02-13-2017 6:18 AM
Hi ,
I am developing sap UI5 application using sap.ui.table.Table.
return new sap.ui.table.Column({
label: labelname,
template: new sap.ui.commons.TextField({
value: {
path: columnName
},
editable: Editable,
liveChange: function(oEvent) {
var newUnitPrice = oEvent.getParameter("liveValue");
}
})
});
When i am changing the cell of the editable column , particular row has to be selected.
How to do that in javascript code ?
Thanks in Advance,
Sandeep
Hi all,
I have achieved this using below code :
liveChange: function(oEvent) {
var rowindex = oEvent.getSource().getParent().getIndex();
that.oPriceProcedureTable.setSelectedIndex(rowindex);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Introduce "selectionBehavior" property to your table as below:
var oTable = new sap.ui.table.Table("idUiTable", {
selectionBehavior: "Row"
});
while editing input value, particular table row will be selected.
Thanks,
Akhilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.