Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8212

Table row colour loading problem

$
0
0

Hi,

 

Thanks for your time.

 

I want to display table row colour dynamically based on table data.

Am able to achieve it partially as below,when I scroll the table the loaded colour dissappears.

I use the below code:-

 

template: new sap.ui.commons.TextView().bindProperty("text","objectivecategory",function(category){

  if(category=="Operational"){

  backgroundColor='#fff2cb';

  backgroundColorClass ="operationColor"

 

  }

  else if(category=="Strategic"){

  backgroundColor='#e8f5fe';

  }else{

  backgroundColor='#ecf6c1';

  }

           cellId = this.getId(); 

           //alert("cellId"+cellId);

          

           $("#"+cellId).parent().parent().parent().css("background-color",backgroundColor);


Viewing all articles
Browse latest Browse all 8212

Trending Articles



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