Re: Need to style DataGrid's header element

Thu, 21 Jun 2012 19:46:03 -0700

Jeremy,

A less than glamorous way to apply CSS changes that are either not exposed, 
or not supported (i.e. CSS3) are to do it yourself at load time.

For example, in the constructor (if you're extending) or directly after the 
instantiation of your DataGrid, walk its DOM and get that <th> element 
you're looking for and apply that CSS style explicitly 
(element.setAttribute("border-collapse","collapse")).

It is not pretty, but I've had to do this a few times. Ideally there is a 
better way, but if not, do what you must.


Sincerely,
Joseph

-- 
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/-/bSUNyU3-Se8J.
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.

Reply via email to