cancel
Showing results for 
Search instead for 
Did you mean: 

Style applied disappearing in Grid table

harimpm
Explorer
0 Kudos

Hello there

I have applied styling for rows based on condition in onAfterrendering method. It seems that it's getting applied as i could see the change for a second. But it vanishes immediately. Any ideas?

this.getView().byId("id_test").getRows().forEach( function(item){
                    if( item.getCells()[0].getProperty("text") === '1' || item.getCells()[0].getProperty("text") === '2' || item.getCells()[0].getProperty("text") === '3' 
                    || item.getCells()[0].getProperty("text") === '4' || item.getCells()[0].getProperty("text") === '5' || item.getCells()[0].getProperty("text") === '6' ){
                        item.addStyleClass("sectionCell");
                    }
                });
harimpm
Explorer
0 Kudos
Any suggestions any one?

Accepted Solutions (0)

Answers (0)