Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
8920
change background color in combo
posted

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.