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
Post a Comment