PDA

View Full Version : Make the height of the cells of grid autoadjustable to their contents



neo1010
22 May 2011, 10:52 AM
Hy, I would like to set in some way "autoHeight:true" the rows or cells of a grid because one of these cells of a grid may have a large text. I tried with the next configuration for the view of the grid:
this.getRowClass = function (row, index) {
var cls = 'gridRow-autoheight';
return cls;
};

But it doesnt do anything. I manually set the height of the rows and the rows have more height but the text is still displayed in one line although the row there is enough space to have three or more lines of text. Maybe is a problem of width, I mean, it seems the text of the cell is configured to be displayed horizontally and not vertically .

Thanks