control configuration :
var auStatus = [{ status: 'Fav' }, { status: 'UnFav' }, { status: 'Neutral' }, { status: 'Unknown' } ]
$("#comboAuStatus").igCombo({ valueKey: 'status', textKey: 'status', selectionChanged: function (evt, ui) { auditVM.OneAuditData.Status(ui.items[0].value); } });
what to add to selectionChanged event if e.g. when ui.items[0].value == 'UnFav' background color of the control is changing to red..
as separate question : how to make background color on the drop down for the 'UnFav' red too..
Make sure that the answer is compatible with 13.2 .. I am not upgrading in this project.
Thanks.
Hello,
Thank you for your post.
I made an sample for you that showing how to change color for current item, how to change color for all items in the combo and how to change color to the igCombo textInput.
You can find the attachment below.
If you need further assistance, please feel free to contact us.
Unfortunately it is not going to work for me.. I am on 13.2.. some methods that you are listed are not there... I am not upgrading,
If you can please show 1. during selectionChanged how to change background of the combo box input area ( what you would see after drop down is closed)
2. How to assign different background colors to the dropdown items based on their values upfront , i.e. when you open drop down all items color coded already
Please use 13.2 methodology. Thanks
I want to clarify that this version is not supported.
You can see our product lifecycle here: http://ko.infragistics.com/support/product-lifecycle.
My advice to you is to update to the latest version and try to reproduce my sample again.
If you have further questions, please feel free to contact us.
I am not sure about your clarification : the version is not marked as EXPIRED yet on the link that you provided, even if it is you probably
can use 14.1 for the same, also it is completely pointless to advise me to upgrade.
I modified the sample with 13.2 version. Sample showing how to change igCombo background color when onSelectionChanged is fired, and when the dropdown is opened, based on the item index change its color.
Thanks, works like a charm...
You are welcome.
I'm glad to hear that all it works for you.