use css selectors to id your datagrid or cell table container. and by use child and exclusion selectors u should be able to spefic the style on the td. u can also use css expressions or some jsni for quick and dirty impl. however i woukd implement it using my own custom cells to render via safe html templates. this would allow u to not only wrap the inner content with a div for overflow handling and or tooltips. iylt would also be the easiest way to specify a class and or id name or other atreibutes. u could crawl it with the dom and element methods but i dont recommend that
Sent from my iPhone On Aug 27, 2012, at 3:43 PM, Kevin Buikema <[email protected]> wrote: > I'm using a CellTable element via UIBinder, and I'm trying to come up with a > way to simply style specific columns in the table to make them look distinct. > To make it as simple as possible, I set up a separate css style for them: > > .special_column_style { > background-color: pink; > } > > and used the code > > table.addColumnStyleName(colIndex, "special_column_style"); > > ...and it does nothing. Is there additional setup for the table that needs to > be done to make the above code work? It seems like it should be simple, and > yet it does nothing. > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/YneTtXIy0mgJ. > 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. -- 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.
