PDA

View Full Version : extJs4.1 : height of row for grid panel



tdikarim
19 Sep 2012, 5:49 AM
Hi all,

How can I change the height of row for a grid panel or grid with rowexpander.
The goal is to use the grid on a large touch screen.

I have try that but it seems doesn't work

getRowClass: function(record, rowIndex, rowParams, store){
height : 50
}

Thanks for your help

:-/Karim

scottmartin
19 Sep 2012, 9:05 AM
You should be able to change the height with:



.x-grid-with-row-lines .x-grid-cell-inner {
line-height: 50px;
}


You can also resize auto using:



.x-grid-cell-inner {
white-space: normal;
}


Scott.

tdikarim
20 Sep 2012, 1:50 AM
Thanks Scott
That's work perfectly

:D
Karim

tdikarim
20 Sep 2012, 2:57 AM
Hi All,

:-/
I have a grid with rowexpander that contain another grid
And for this sub-grid I want to conserve the standard line-height

If you have a solution thanks for sharing.

Karim