PDA

View Full Version : Large data in Grid cell



sidd
11 Sep 2009, 3:57 AM
Hi,

I am using EdiotrGridPanel for my grid with fixed cell width. I am having a cell which will contain large data and its not able to show the whole data in the cell...

any idea ?

Thanks,
Sidd

Condor
11 Sep 2009, 4:03 AM
It's in the Grid FAQ (http://www.extjs.com/learn/Ext_FAQ_Grid#How_to_wrap_contents_within_a_cell_of_a_fixed_width_grid_column.3F).

sidd
11 Sep 2009, 4:24 AM
Thanks Condor for ur reply .. I had applied the css for entire grid.


<style type="text/css">
.x-grid3-cell-inner, .x-grid3-hd-inner { white-space:normal !important; }
</style>

but its not working for me.

Thanks,
Sidd.

Condor
11 Sep 2009, 4:33 AM
What kind of content does your grid have?

Can the content actually be word-wrapped or is it one big string or element?

sidd
11 Sep 2009, 4:43 AM
What kind of content does your grid have?

Can the content actually be word-wrapped or is it one big string or element?



Its a big String.

Thanks,
Sidd

Condor
11 Sep 2009, 4:46 AM
With or without whitespace? Only a text with whitespace can be word-wrapped.

ps. If it doesn't have whitespace you could either use a renderer to insert <wbr/> elements in the text or add the complete text as a tooltip.

sidd
11 Sep 2009, 4:51 AM
Thanks Condor.

It was without white space in the dummy data. Actually it will be with white space in the proper data...

Thanks Condor.
Sidd