Populate items after typing 3 characters.

2 posts, 1 answers
  1. Katya
    Katya avatar
    21 posts
    Member since:
    May 2013

    Posted 16 Jul 2013 Link to this post

    Hi

    I am using a radcombobox with load on demand. I want to populate items only after typing 3 characters. How?

    Thanks
    Katya
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 16 Jul 2013 Link to this post

    Hi Katya,

    Attach the OnClientItemsRequesting client event and try the following JavaScript code.

    JavaScript:
    <script type="text/javascript">
        function OnClientItemsRequesting(sender, args) {
            if (args.get_text().length < 3) {
                args.set_cancel(true);
            }
        }
    </script>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top