Hmmm, I had considered that and will look more into it now that you gave me this tip.
There's just one problem with that approach: String length is character-based, but in order to see if it does fit a column, I need to be able to compare it with the column width, which is calculated in pixels. I have no idea how to make such a comparsion... On 3 Ago, 02:31, alberto33 <[EMAIL PROTECTED]> wrote: > What about using Java string methods to calculate the length of the > strings and the head and tail (with substring), then put this logic in > a gwt-ext Renderer? > > On Jul 30, 10:51 am, Palietta <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I have a GridPanel whose GridView has setForceFit() to true, so its > > total width does not exceed its allotted space. > > > Some records in this grid contain text which is often very long, > > usually longer than their column width. > > > The default behaviour of a column is to show only the visible bit of > > text starting from the beginning. Is it possible to change this > > behaviour so as to display the last part instead, or part of its head > > and tail? > > > Suppose I have a record containing a field like: > > > ThisIsSupposedToBeSomeReallyLongText > > > If the column is too narrow to show all the text, it should be > > something like: > > > ThisIsSupp.......lyLongText > > > The length of its head and tail should change dynamically when a > > column is resized. > > > On a higher level, the process could preserve separator characters for > > file paths or URLs, like: > > >http://gro.../.../...gwt-ext > > > I've seen this feature on several applications, so I'm pretty sure you > > understand what I'm looking for. Now, does GWT-Ext have any method > > that does this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/gwt-ext?hl=en -~----------~----~----~----~------~----~------~--~---
