Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    getCellCSSText() makes grid scroll operation slow

    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

    #2
    If you've tracked the problem to your function being slow, then you need to work on making your function faster. Obviously, it must be called for every cell, or it would not work.

    Is there something that you need from us here?

    Comment

    Working...
    X