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
215
can we set minLength in igxAutocomplete?
posted

I have used igxAutocomplete feature in igxGrid.cell. I want to set minLength in autocomplete so that the dropdown starts listing after typing the minimum characters in the cell. Is this possible in autocomplete feature.

Parents
  • 720
    Offline posted

    Hello Minakshi,

    Thank you for contacting Infragistics Support!

    I believe you will find the following sample I have prepared for you very helpful. As you can observe I’m subscribing to the igxDropDown onOpening event and I check the length of the property bound to the igxAutocompleteDirective. If its length is less than n chars I set the cancel property of the onOpening event args to true, preventing the opening of the igxDropDown.

    If you find any difficulties implementing this approach within an igxGrid I suggest providing an isolated sample within Stackblitz which I would be able to investigate on my side and provide you with solution as soon as possible.

    Looking forward to hearing from you!

    Best Regards,
    Martin Evtimov
    Associate Software Developer
    Infragistics, Inc.

Reply Children