Keep control over your ExtJS grid cell wrapping

Sometimes you would like to have a cell’s text in a ExtJS grid wrapped like this:

ExtJS grid cell wrapping sample

The following code shows how to do it with a little bit of CSS and the tdCls config setting in your grid column definition. Don’t use the cls config setting, for this has only effect on the header of the column.

Johan van de Merwe
Dedicated to professional software development since 1985. Has worked since 1992 as IT manager in several international operating companies. Since 2007 CEO and Sencha Ext JS web application developer at Enovision GmbH.

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.