PDA

View Full Version : Ext.Grid.PropertyGrid increase Cell height



ajay.kumar2
21 Jan 2011, 8:07 AM
Hi,

I am using a Ext.Grid.PropertyGrid, In one of the columns I have a large text to be displayed.

I am not able to display the text on separate lines in a cell.

Any help would be greatly appreciated. thanks.

Condor
22 Jan 2011, 8:43 AM
See the Grid FAQ (http://www.sencha.com/learn/Ext_FAQ_Grid#How_to_wrap_contents_within_a_cell_of_a_fixed_width_grid_column.3F).

ajay.kumar2
29 Jan 2011, 4:31 AM
Hi,

I tried using following css but the content in the cell of my PropertyGrid didn't wrap.


td.x-grid3-td-value {
overflow: hidden;
color:red;
}
td.x-grid3-td-value div.x-grid3-cell-inner {
white-space: normal !important;
}


I am using the following code to set the data in my PropertyGrid:-


myDetailObj['column1']='some text';
myDetailObj['column2']='very large text here which is getting cut in the property grid cell';

myPropertyGrid.setSource(myDetailObj);


Any clues?