Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » removing alternate row color style
removing alternate row color style [message #1062447] Fri, 07 June 2013 18:07 Go to next message
Testr t is currently offline Testr tFriend
Messages: 93
Registered: April 2013
Member
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 20:39 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 1434
Registered: July 2012
Senior Member
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 20:48 Go to previous messageGo to next message
Testr t is currently offline Testr tFriend
Messages: 93
Registered: April 2013
Member
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 20:49 Go to previous messageGo to next message
Testr t is currently offline Testr tFriend
Messages: 93
Registered: April 2013
Member
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 20:51 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 1434
Registered: July 2012
Senior Member
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 14:29 Go to previous message
Testr t is currently offline Testr tFriend
Messages: 93
Registered: April 2013
Member
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: Mon Dec 22 03:30:25 GMT 2014

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

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