Yes, adding that many elements, and especially tables will take a long time to render. One thing I want to let you know is that a HorizontalPanel is rendered as a table itself. So basically you have a table of one column of which each row contains another table that only has one row. Rendering that many tables will take a long time. You would be better off using the FlexTable correctly and set each row/ column with whatever widgets you are putting in the HorizontalPanels. It's also better to not attach the table to the page until the entire table has been created.
On Oct 14, 2:11 am, maheshm1206 <[email protected]> wrote: > I am trying to create a Flex Table in GWT with 300+ rows. > I am adding each cell using a Horizontal Widget having the data to be > shown. > The css for the data is added to Horizontal Widget. > > This takes almost 3 to 4 minutes in Mozilla. In IE 7 its totally > frozen and does not respond. > Thanks for any inputs. > <code> > FlexTable table = new FlexTable(); > HorizontalPanel tickerPanel = new HorizontalPanel(); > tickerPanel.setStyleName("Data-Row"); > table.setWidget(rowNumber, columnNumber, tickerPanel); > table.getCellFormatter().setStyleName(rowNumber, columnNumber, > styleName); > table.getCellFormatter().setHorizontalAlignment(rowNumber, > columnNumber, HasHorizontalAlignment.ALIGN_CENTER); > </code> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
