I have a combobox as displayed below, and I was wondering if there is a setting to control the minimum number of characters to display before the service gets called. In other words, I would like to call the service only after the user typed in 3 or more characters. Also, when the control initially loads, there are no rows, as soon as I start typing, a blank drop down appears. Is there a way to supress the display the dropdown if there are no rows? <script type="text/javascript"> |
function OnClientItemsRequesting(sender, eventArgs) { |
var context = eventArgs.get_context(); |
context["prefixText"] = eventArgs.get_text(); |
} |
</script> |
<telerik:RadComboBox ID="rcCompany" runat="server" |
AllowCustomText="true" |
DataTextField="Name" |
DataValueField="CompanyId" |
Height="200px" |
Width="400px" |
DropDownWidth="400px" |
MarkFirstMatch="true" |
Text='<%# Bind("CompanyName") %>' |
EnableLoadOnDemand="true" |
ShowMoreResultsBox="true" |
EnableVirtualScrolling="true" |
OnClientItemsRequesting="OnClientItemsRequesting"> |
<WebServiceSettings Method="GetCompletionList" |
Path="AutoCompleteCompany.asmx" /> |
</telerik:RadComboBox> |