Hello!
I've been searching for proper solution for hours. There is no way, how to 
do it "nicely".

Basically I add the class to the columns using:

// the THs
SafeHtml memberIdColumnHeader = SafeHtmlUtils.fromSafeConstant("<span 
class=\"toHide\">Member ID</span>");
SafeHtml userIdColumnHeader = SafeHtmlUtils.fromSafeConstant("<span 
class=\"toHide\">User ID</span>");
table.addColumn(memberIdColumn, memberIdColumnHeader);
table.addColumn(userIdColumn, userIdColumnHeader);

// the TDs
memberIdColumn.setCellStyleNames("toHide");
userIdColumn.setCellStyleNames("toHide");

And then I use jQuery to hide/show it it:
private static native void showHide(boolean show) /*-{
if(show)
{
$wnd.jQuery(".toHide").show(); // the TDs
$wnd.jQuery("span.toHide").parent().show(); // the THs
}else{
$wnd.jQuery(".toHide").hide();
$wnd.jQuery("span.toHide").parent().hide();
}
}-*/;

It's not the finest solution, but it works :-) 

-- 
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/-/ZDEcZacBfewJ.
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