Hi Team,
Smartclinet version: v11.1p_2017-07-24/PowerEdition Deployment (built 2017-07-24)
We need to change the background colour of a cell based on some hidden field value of record.
We have used the below method and it works.
@Override
protected String getCellCSSText(final ListGridRecord record, final int rowNum, final int colNum) {
if (record != null && "someConditionIsMet") {
return "background-color:yellow;";
}
return super.getCellCSSText(record, rowNum, colNum);
}
But however, when the grid has large number of records, say 50000, the scroll operation on grid becomes very slow. Is there anything that can be done to improve performance.
Also, How can i attach a css in the same method such that i can change hover colour, selected colour etc.
Regards,
Swati
Smartclinet version: v11.1p_2017-07-24/PowerEdition Deployment (built 2017-07-24)
We need to change the background colour of a cell based on some hidden field value of record.
We have used the below method and it works.
@Override
protected String getCellCSSText(final ListGridRecord record, final int rowNum, final int colNum) {
if (record != null && "someConditionIsMet") {
return "background-color:yellow;";
}
return super.getCellCSSText(record, rowNum, colNum);
}
But however, when the grid has large number of records, say 50000, the scroll operation on grid becomes very slow. Is there anything that can be done to improve performance.
Also, How can i attach a css in the same method such that i can change hover colour, selected colour etc.
Regards,
Swati
Comment