on 02-14-2024 2:07 PM
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");
}
});
User | Count |
---|---|
75 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.