var oTablePOB = new sap.ui.table.Table("maintable",{ | |||
selectionMode: sap.ui.table.SelectionMode.multi, | |||
navigationMode: sap.ui.table.NavigationMode.Scrollbar, | |||
visibleRowCount:30, | |||
width:"100%", | |||
editable:false, | |||
rowSelectionChange: function(e) { | |||
var indices = e.getParameter('rowIndices'); | |||
//alert(indices.length); | |||
for (var i = 0; i < indices.length; i++) { | |||
var idx = indices[i]; |
if (oTablePOB.isIndexSelected(idx)) {
//alert(idx);
// var indexOF=oTablePOB.getSelectedIndex();
// | var colid =this. getId(); |
// alert(colid);
//oTablePOB.getRows()[idx].$().addClass("selectRow");
oTablePOB.getRows()[idx].$().css({"background-color":"#FA0000"});
//alert(oTablePOB.getRows()[idx]) ;
//alert(idx);
}
}
// oTablePOB.getRows()[idx].$() .parent().parent().parent().css({"background-color":"#FA0000"}); |
// oTablePOB.getRows()[idx].$() .$("#"+colid).parent().parent().parent().css({"background-color":"#FA0000"});
//alert(idx); |
}//}
}).addStyleClass("textfont"); |