I am having issues getting the validation for an igCombo to work. I am using knockout to bind my data. The data binds find and I click on the "x" icon to clear the data but when i try to call validation on the field I am getting an error. Usually I use the below code however I am getting an error about the validator not being initialized.
var itemValid = isNaN($('#Headquarters_State2').igValidator('validate'));
<span id="Headquarters_State2" data-bind="igCombo: { text: State, dataSource: States, textKey: 'Abbreviation', valueKey: 'StateCode', enableSelectionChangedUpdate: true, width: '200', mode: 'dropdown', width: 70, validatorOptions: { required: true } }"></span>
Hi, Mike.
I want to ask you if my solution helped you to resolve the case. If you need further assistance don't hesitate to ask me.
Thanks again for using our product.
Best regards, Nikolay Alipiev
You can try to explicitely request the igValidator, while configuring the igLoader. If this doesn't help you, we will investigate the problem further. The followig code worked for me:
$.ig.loader({ scriptPath: "js/", cssPath: "css/", resources: "igCombo,igValidator,extensions/infragistics.ui.combo.knockout-extensions.js" });
Best regards,
Nikolay Alipiev