This is a migrated thread and some comments may be shown as answers.

Populate items after typing 3 characters.

1 Answer 22 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Katya
Top achievements
Rank 1
Katya asked on 16 Jul 2013, 09:09 AM
Hi

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

Thanks
Katya

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 16 Jul 2013, 09:57 AM
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.
Tags
ComboBox
Asked by
Katya
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or