javascript - Setting gridview column background dynamically -


i'm using ext js 4.0 , sencha architect 4.1

i want set column background of each column based on value of corresponding record.

i know how change cell background using renderer. don't know how whole column because don't want set renderer each cell in gridview.

is there way set background whole column?

i solved way:

in site.css added style this

.custom-row .x-grid-cell {     background-color: #ffe2e2; } 

and in ext.grid.view added getrowclass method this

viewconfig: {     getrowclass: function(record, rowindex, rowparams, store) {         var isconditionmatching = ....          if(isconditionmatching ){             return 'custom-row';         }     }, 

Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -