Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
raghavsurya
Partner - Specialist
Partner - Specialist

how to change background colour of a list box

Hi All,

Can you please suggest me how to change the background colour of a list box.

Thanks and Regards,

Raghav

22 Replies
Not applicable

Hi,

I like your solution, John, although it's 'crooking the books' a bit? However, I really liked Brad's direct reply. I tried it out, using a light colour for background e.g. yellow. In addition, I adjusted the Transparency %. I can now make my models so much more 'prettier'. However, it only works for QV 10.

Thanks Brad.

Arie

johnw
Champion III
Champion III

vandongen wrote:

I like your solution, John, although it's 'crooking the books' a bit?


You're right, and I'd likely never do it that way unless forced.  I prefer my users simply get used to the default controls with their default look and feel.  Also, it doesn't have full list box functionality.  Control-click and shift-click don't work in it.  You can't do a search in it.  There are probably other issues as well.  I don't like giving up functionality for aesthetics, even if I'm not a fan of the default bright green for selected values.

Not applicable

Hi all, you can fake some functionality of the list box with a stright table simply by adding the drop-down select option found in the presentation tab. This way the user may click on the drop down and perform Control-click type selections, as well as, string searches, however I agree with John, the layout should be kept light and clear.

Reagards.

Not applicable

Hi John, good solution. Selection is valid for the object type "Graphic", but how can make the change to a calendar?

Calendar.PNG

johnw
Champion III
Champion III

Well, what you show is just a list box, so you could do it like I suggested before.

For a calendar object, you can fake a calendar using other objects.  See the attached example.  In the example, I'm using the standard gray and green, but these are explicitly defined as a background color expression underneath the main expression.  You'd also need to change a bunch of other objects to match, like the background text box I used, custom format cell for the blank cells and cell borders, and so on.

I don't recommend going to all this effort unless there is a strong reason.  I wouldn't personally consider color changes a strong reason.  In the example, the assumed reason was that weeks needed to start with Sunday instead of Monday, something the regular calendar object doesn't support (unless that's been more recently addressed in some way).

Not applicable

Thank you very much for the advice and example. Follow your great advice

barryharmsen
Luminary Alumni
Luminary Alumni

On the AJAX client in QlikView 11, you can also change the default selection colors using a Document Extension. An example can be downloaded from here: http://www.qlikfix.com/2012/05/18/any-colour-as-long-as-its-green/

Not applicable

Hi,

I used your attachment and I put conditional color in it. But when I select one value then other value got no background color else all three values are having color.

Any help is welcome?

Not applicable

Hi

what does it mean?

=

if(only({1} Type)='Current',green(),red())

used in text color

rohit214
Creator III
Creator III

Hi @John witherspoon,

I have gone through your example, I am quite wondering how can you are showing all the field name without using any expression.

Please let me know it will really appreciable.

Regards,

Rohit