on 08-26-2014 10:57 AM
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);
Hi D,
Thankyou.It is helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.