Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Change colour of table rows(Changing the colour of table rows based on certain criteria like past due date)
Change colour of table rows [message #1873067] Thu, 05 December 2024 06:37 Go to next message
Eclipse UserFriend
Hi there everyone,

I have a table with a list of items and their expiry dates. I would like the rows with items that have expired to be in a different colour so that they can easily be identified.

Is it possible to do this and if so, how?

Thanks a million,

JD
Re: Change colour of table rows [message #1873073 is a reply to message #1873067] Thu, 05 December 2024 07:40 Go to previous messageGo to next message
Eclipse UserFriend
Are you using Scout classic (building a Java application)?

You could overwrite org.eclipse.scout.rt.client.ui.basic.table.AbstractTable.execDecorateRow(ITableRow) read the row content/decide somehow and then call org.eclipse.scout.rt.client.ui.basic.table.ITableRow.setCssClass(String) (you might need to add some extra CSS classes if none of the existing fit).
Re: Change colour of table rows [message #1873178 is a reply to message #1873073] Sat, 07 December 2024 12:51 Go to previous messageGo to next message
Eclipse UserFriend
Hi there Matthias,

Yes I'm using Scout Basic version 23.2. Thanks for the tip. I'll apply your suggestions.

Cheers,

JD
Re: Change colour of table rows [message #1873283 is a reply to message #1873178] Tue, 10 December 2024 10:51 Go to previous message
Eclipse UserFriend
Hi there Matthias,

It worked! Thanks a million.

JD
Previous Topic:java.lang.NoSuchFieldError exception in Scout SDK core when saving a source file
Next Topic:Export table rows as a CSV file
Goto Forum:
  


Current Time: Thu Jun 12 11:11:24 EDT 2025

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

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

Back to the top