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
265
WebDropDown Autocomplete
posted

I am doing Server side auto filtering with OnItemsRequested.  Is there a way to specify the minimum number of characters entered before doing a postback to retrieve data?

Parents
  • 7566
    Verified Answer
    posted

    Hello JMui,

     

    Thank you for posting in our community. I have created a sample that reproduces this scenario. You can download it here and try it.

    Note that in the sample I specified a minimum number of characters to be 3

    I am handling the client side event ValueChanging

     

    In this function:

    function WebDropDown_ValueChanging(sender, eventArgs) {

                         if (eventArgs.getNewValue().length == 3) {

                               var combo2 = $find('<%= WebDropDown1.ClientID %>');

                               combo2.loadItems(eventArgs.getNewValue());

                         }

                  }

    When the length is equal to three the ItemsRequested is fired.

     

    For any further questions do not hesitate to contact me.

     

    Sincerely,

    Georgi Sashev

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

    WDDautoFiltering.zip
Reply Children