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. 

Parents
  • 1740
    Offline posted

    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.

    igCombo-Change-Background-Color.zip
Reply Children