Hi
I have a drop down combo like below:
var categories = [ {"value": "0", "name" : "Eric"},
{"value": "1", "name" : "Juan"}, {"value": "2", "name" : "Sha"}, {"value": "3", "name" : "Hash"} ];
$("#catid").igCombo({ textKey: "name", valueKey: "value", dataSource: categories, mode: "dropdown", width: 195, nullText : "Please Select Category", autoComplete: true, dropDownOnFocus: true, required: getRequired(), validatorOptions: { required: true, errorMessage: "Please Select Category", formSubmit: true, onsubmit: true, onchange: false, onblur: true } });
But on form submit, when selecting the value like below, i am getting below exception:
var catID = $("#catid").igCombo("value");
Exception: cannot call methods on igCombo prior to initialization; attempted to call method 'value'
Could you please do the needful help ?
Thank you...
Hello,I am still following your case. Have you been able to resolve the issue?If you have any concerns or questions, please feel free to contact me, I will be glad to help you.Thank you for choosing Infragistics components!
Best Regards,Hristo AnastasovDeveloper Support EngineerInfragistics, Inc.
Hello,
I reviewed your code and it seems ok, however I need to see how you handle the form submit event in order to investigate this. I will appreciate if you could send me this part of your code.
Meanwhile please review the attached sample for a demonstration of handling the form submit event. I hope it helps.
Please let me know if you have any additional questions regarding this issue.
Hi TopCoder,
Thank you for using Ignite UI!
I have tried to reproduce the issue that you are having with getting the value of the Combo control but I was not able to see any problem.
Can you, please, provide a working example for this issue, containing your form submit code and the code inside the 'getRequired' function?
Thank you once more for using the Infragistics Ignite UI controls!
I look forward to hearing from you,
Alexander Marinov - SEiT/Web Tools