Skip to main content



      Home
Home » Eclipse Projects » NatTable » removing alternate row color style
removing alternate row color style [message #1062447] Fri, 07 June 2013 14:07 Go to next message
Eclipse UserFriend
Hi,

I am using a tree grid with glazed lists. I have the grey background color on the alternate rows. How do I remove this alternate background color configuration and have the same white background for all rows?
Re: removing alternate row color style [message #1062458 is a reply to message #1062447] Fri, 07 June 2013 16:39 Go to previous messageGo to next message
Eclipse UserFriend
You need to override DefaultGridLayerConfiguration.addAlternateRowColoringConfig() to be empty or implement your own GridLayerConfiguration that doesn't add the alternate row configuration.
Re: removing alternate row color style [message #1062462 is a reply to message #1062458] Fri, 07 June 2013 16:48 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Dirk. But the GridLayer class does not allow me to pass the overriden implementation which removes the alternate coloring. Should I add that to the Nattable itself?
Re: removing alternate row color style [message #1062464 is a reply to message #1062462] Fri, 07 June 2013 16:49 Go to previous messageGo to next message
Eclipse UserFriend
Never mind. I can use addConfiguration directly on gridlayer.
Re: removing alternate row color style [message #1062465 is a reply to message #1062462] Fri, 07 June 2013 16:51 Go to previous messageGo to next message
Eclipse UserFriend
Why not? Did you create it with the parameter useDefaultConfiguration set to false?
Re: removing alternate row color style [message #1062729 is a reply to message #1062465] Mon, 10 June 2013 10:29 Go to previous message
Eclipse UserFriend
Yes, I passed false for default configuration and used addConfiguration. Thanks Dirk
Previous Topic:exportMultipleNatTables()
Next Topic:Nattable creation in IWorkbenchSiteProgressService
Goto Forum:
  


Current Time: Fri Jun 20 04:28:32 EDT 2025

Powered by FUDForum. Page generated in 0.25115 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top