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

How to disable DataSource request

1 Answer 115 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 21 Mar 2016, 09:48 AM

Hi,

I'd like to use AutoCompleteBox as keyword-tokens entry field and thus it won't need any data source to be bound to. Is it possible to disable auto-suggest feature completely or maybe there's a more suitable control for that? I tried cancelling OnClientRequesting event in javascript handler (see below), but when user types, the control shows "loading" animation which switches off only after the control loses focus. 

Thanks!

 

<script type="text/javascript">
                function txtKeywords_OnClientRequesting(sender, args)
                {
                    args.set_cancel(true);
                }
</script>

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 23 Mar 2016, 04:00 PM
Hello Andy,

The AutoCompleteBox is designed to return results based on the text entered by the user and we do not have another control with similar functionality that supports tokens.
As for disabling the loading icon from showing you can do this with CSS:
.RadAutoCompleteBox .racLoadingIcon {
    display: none !important;
}


Regards,
Ivan Danchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
AutoCompleteBox
Asked by
Andy
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or