Re: How to build text trimming cell for GWT DataGrid

2012-05-02 Thread benb
Works good, thanks! On May 1, 10:50 am, Andrei vol...@spiraluniverse.com wrote: @Jens, Just to expand on Jen's answer. For this solution to work, you need to apply it to a div inside a cell: .myDataGrid td div {     white-space: nowrap;     overflow: hidden;     text-overflow: ellipsis;

Re: How to build text trimming cell for GWT DataGrid

2012-05-01 Thread Andrei
@Jens, Just to expand on Jen's answer. For this solution to work, you need to apply it to a div inside a cell: .myDataGrid td div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } Apply CSS to your cell: white-space: nowrap; overflow:hidden; text-overflow:

Re: How to build text trimming cell for GWT DataGrid

2012-04-29 Thread Jens
Apply CSS to your cell: white-space: nowrap; overflow:hidden; text-overflow: ellipsis; -- J. Am Sonntag, 29. April 2012 14:45:59 UTC+2 schrieb benb: Hi, I'm looking for examples for building a text-trimming cell for GWT DataGrid. I want the cell to have fixed width and height, and if

Re: How to build text trimming cell for GWT DataGrid

2012-04-29 Thread Robert W
If you extend AbstractCell? there is access to your model and cell state (view,edit). There you can count chars, traverse dom that suit your needs On Sunday, April 29, 2012 2:45:59 PM UTC+2, benb wrote: Hi, I'm looking for examples for building a text-trimming cell for GWT DataGrid. I