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

Re: sap.ui.table.Table-Row color change on select

$
0
0
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");

Viewing all articles
Browse latest Browse all 2878

Trending Articles



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