Declined
Last Updated: 27 Jan 2014 10:32 by Elena
Marco
Created on: 22 May 2013 14:28
Category: Ajax
Type: Bug Report
0
RadAutoCompleteBox setting focus doesn't work
I tried to set the focus on a RadAutoCompleteBox in many different ways. Unfortunately nof them worked.
Neither on server-side by RADAutoCompleteBox1.Focus() in the page_load Event, nor on client-side by using the OnClientLoad Event of the RACB. Any ideas how to get it done? I guess this is a bug as Setting Focus on other control works easily.
1 comment
Elena
Posted on: 21 Aug 2013 07:18
Use the following code:

//aspx:
<telerik:RadAutoCompleteBox 
	runat="server" 
	ID="RadAutoCompleteBox1" 
	DataSourceID="SqlDataSource1"
	DataTextField="FirstName" 
	Width="280px" 
	DropDownWidth="280px" 
	InputType="Text" 
	Delimiter=";," >
</telerik:RadAutoCompleteBox>

<asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
ProviderName="System.Data.SqlClient" SelectCommand="SELECT [FirstName], [LastName], [EmployeeID] FROM [Employees]">
</asp:SqlDataSource>

//cs:
ScriptManager1.SetFocus("RadAutoCompleteBox1_Input");