0

Problem in Listbox "Grid Content" foreground color change based on selection.

asked 2010-04-13 07:58:42 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

We have a listbox and need to customize the list items foreground color as mentioned below:

The default listitem font color should be light grey and selected listitem font color should be white.

We have tried the "Selected Color" option with white color on (Grid Content -> Background tab). It works fine.

But, when we set "Font Color" option with grey on (Grid Content -> Font), thereafter the "Selected Color" doesn't seems to work.

We have been using ZK 5.0.1 package with Studio Designer 0.9.6 version.

Is there any work around to this?

Thank you.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-04-14 21:16:47 +0800

PeterKuo gravatar image PeterKuo
481 2

What's the generated css?

You may try to customize the css manually. Please refer to
http://docs.zkoss.org/wiki/Style_Customization

link publish delete flag offensive edit

answered 2010-04-15 01:37:52 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

Thank you PeterKuo.

The following is the css generated by Studio plugin 0.9.6 version:

<style>
	div.z-listbox.testlistbox tr.z-list-item-seld
, div.z-listbox.testlistbox tr.z-listitem-seld{
	color : #80FF00; 
}
	div.z-listbox.testlistbox .z-list-item div.z-list-cell-cnt
, div.z-listbox.testlistbox .z-listitem div.z-listcell-cnt{
	color : #FF0000; 
}
</style>

I will try to customize the css manually as you said.

Thank you.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-04-13 07:58:42 +0800

Seen: 1,484 times

Last updated: Apr 15 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More