cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
cvazquc3
Level: Powered On

Assign color items in combobox or dropdownlist according to letter begin.

Example:

Blue color text    ->    CellPhone XXXXXXX

Red color text   ->    Laptop  5580XXXXXXXX

                                 Laptop  5590XXXXXXXX

Black color text   ->    PC Dell XXXXXXXXX

                                 PC HP XXXXXXXXX

- I used this formula BUT fill all items in PROPERTIES "COLOR" of the Combobox

If("CellPhone" exactin ddEquipmentN.Font,Blue,Red)

- Could you please review attached image.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Assign color items in combobox or dropdownlist according to letter begin.

@cvazquc3 

Unfortunately you cannot change the color of individual items in a ComboBox or DropDown list.  The items will all be one color.

If you want that capability, you might want to drop into the Idea forum and post it there as an idea.

 

You can also get this ability by using a Gallery control.  There you can adjust the TemplateFill for each item in your list.  Obviously this is not a ComboBox or DropDown, but it can be manipulated to perform that function fairly easily. 

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
3 REPLIES 3
Super User
Super User

Re: Assign color items in combobox or dropdownlist according to letter begin.

@cvazquc3 

Unfortunately you cannot change the color of individual items in a ComboBox or DropDown list.  The items will all be one color.

If you want that capability, you might want to drop into the Idea forum and post it there as an idea.

 

You can also get this ability by using a Gallery control.  There you can adjust the TemplateFill for each item in your list.  Obviously this is not a ComboBox or DropDown, but it can be manipulated to perform that function fairly easily. 

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
cvazquc3
Level: Powered On

Re: Assign color items in combobox or dropdownlist according to letter begin.

Thank you for Support me

Now I have other question, could you please support me.

 

You know as remove value in combobox (Components) if I select an equipment in combobox (Equipment) when I select all Startwith CellPhone?

 

I Attached an image, could you please review

 

Super User
Super User

Re: Assign color items in combobox or dropdownlist according to letter begin.

@cvazquc3 

Are you stating that you want your "Components" dropdown to only contain components relevant to the "Equipment" selected?

If so, then you will need to set a filter on the Items of the components dropdown list that filters based on whatever criteria you have that relates components to equipment.

For example, if you had an equipment record such as {ID=5, Equipment="Cellphone SamsungJ6"} and you had records in your components lists such as {ID=1, EquipmentID=5, Component="Screen Protector"} then, for your components dropdown, your items property would be similar to this:

  Filter(componentsList, EquipmentID = equipmentDropDown.Selected.ID)

 

If that is what you are looking to do, then give that a try.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.