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
150
Disable validation on igniteui combobox
posted

I have multiple combobox on my form and some of them are hidden. I don't want to apply validation rules on them. I have tried something like:

var validatorOptions = {};
validatorOptions.onblur = false;
validatorOptions.onchange = false;
validatorOptions.onsubmit = false;
validatorOptions.formSubmit = false;
validatorOptions.keepFocus = false;
validatorOptions.showIcon = false;
validatorOptions.required = false;


$('#my-combox-id').igCombo({
    validatorOptions: validatorOptions,
});

But it doesn't work, i still cannot post my form.

So how do i disable validation on a combobox?

Parents
  • 4315
    Verified Answer
    Offline posted

    Hi, Chung.

    Thank for using our product and I hope I will be able to help you.

    This was issue with the igCombo that we fixed with previous service release, so if you can tell me which version of Ignite UI product you are using, I will be able to help you better. Meanwhile you can use the solution used in the following forum thread:

    Code Snippet
    1. $(".container").on("igcombodatabound", "#my-combox-id", function () {
    2.     $("#my-combox-id").igCombo("option", "validatorOptions", null);
    3. });

    But as I said if you are using the latest service release you should not experience this problem. So any additional information will help us to resolve your case or find inconsistencies in Ignite UI code.

    Best regards,

    Nikolay Alipiev

Reply Children