cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KhurramJamshed
Frequent Visitor

Canvas App Combobox fill color change

Hello,

I have a combobox sitting nicely as gallery column filter dropdown.

My challenge is to change a background color of a combobox when the dropdown values get visible.

 

In below screen shot i had to change the fill color of combobox to same as fill color of label on which its stacked up, so that it look as part of a column header

KhurramJamshed_0-1593508586153.png

but when i click on a chevron and the dropdown value becomes visible, the background fill color of a dropdown values is green as one can expect.

KhurramJamshed_1-1593508825939.png

 

how can i change it to neutral/white when the dropdown values are visible? and then back to green when its not visible?

any ideas will be appriciated.

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @KhurramJamshed ,

 

There is no out-of-box property to check if the combo box is being expanded. 

As an alternative workaround, you can try to create a custom Combo box by Textinput box, Gallery and a Down icon.

I have attached the sample app below, please let me know if it works for your case.

GIF_85.gif

View solution in original post

5 REPLIES 5
eka24
Super User
Super User

You can change the fill color to:

RGBA(255, 255, 255, 1) or White
 
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

i wish it could be that simple 🙂

the issue is not that i dont know how to change a color.

 

I have to change a color (to say grey) when the dropdown values are visible, and then change it to (say green to match the column background color) when it's collapsed. 

eka24
Super User
Super User

Do you have a dropdown in the screenshot you showed, i cant see that.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

thanks for your reply.

in the first screen shot, where you can see a chevron (next to Program) is actually a combobox without border and background fill as Green so that it look as part of a column:

KhurramJamshed_1-1593512798503.png

 

In the second screen shot, when i click on a combobox and the values get displayed is when the background is still green (as expected). but this is when i actually want to set background fill to (Gray or white or etc).

KhurramJamshed_0-1593512712933.png

 

so basically a fill color to be changed when combbox is expanded, and then change it back when its colloapsed.

Hi @KhurramJamshed ,

 

There is no out-of-box property to check if the combo box is being expanded. 

As an alternative workaround, you can try to create a custom Combo box by Textinput box, Gallery and a Down icon.

I have attached the sample app below, please let me know if it works for your case.

GIF_85.gif

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,512)