Reputation: 5299
There is grid in ExtJs app.
In one row i want to show some text something about 300 symbols. So i need a set heigth to this row.
I found some examples using ViewConfig:
viewConfig: {
getRowClass: function (record, rowIndex, rp, store) {
rp.tstyle += 'height: 50px;';
}
}
but how i understand its set height to all rows. But how to do same only for one row?
Another question, its can be mad, but its possible to put memo into grid cell?
Upvotes: 0
Views: 3406
Reputation: 5253
You can ask on the proper values (usually id) or rowIndex and only sets for it:
viewConfig: {
getRowClass: function (record, rowIndex, rp, store) {
if(record.id == 439){ //id is some field from the store model
rp.tstyle += 'height: 50px;';
}
//or
if(rowIndex == 1){
rp.tstyle += 'height: 50px;';
}
}
}
Upvotes: 1