Hi Suren! I dont know why this is not working, but you can use a Label, set the word wrap of the label to false and add this label to one of your FlexTable's cell. This should work.
-Danny 2009/3/30 Suren <nsurendi...@gmail.com> > > Hi All, > > I am using FlexTable in a grid format to display text. I have a > situation like, the width of the particular column needs to be fixed. > And in that case, I need to show whatever text is fit into that width. > I dont want to use wordwrap, which inturn affects my layout. Or I dont > want to display the full lengthy text too. > > I 've tried > [code] > FlexTable f1 = new FlexTable(); > > f1.setText(0, 0, "This is a very long text"); > f1.setBorderWidth(2); > f1.getCellFormatter().setWidth(0,0,"2px"); > f1.getCellFormatter().setWordWrap(0, 0, false); > [/code > > In the above case, I set the wordwrap to false, but still I am getting > the wrapped text in the Flextable > > Could anyone please suggest any ways to acheive this? > > Thanks > Suren > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---