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.
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
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
This is an old version of jquery with an old version of Ignite UI. I can't get this to work with the latest versions of jQuery, jQuery UI and Ignite UI (1.9.1, 1.10.2, 2013 v1 respectably)
Hello Mike Davis,
Thank you for contacting Infragistics!
Attached is a sample using the specifications you have mentioned as follows:
jQuery 1.9.1
jQuery-ui 1.10.2
IgniteUI 13.1 latest version.
If you have any questions, please let me know as well.
I am still getting the error about the validator not being initialized
Hello Mike,
Please let me know the browser(s) you are using.
I have tried this in Chrome 27 and IE 10
My version is 10.0.9200.16576
At the moment, I am not able to reproduce the behavior using IE10.
It is possible that we using a different specific version of IE20. Please let me know the specific version of IE10 you are using.
if you have any questions, please let me know as well.