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

intelli sense text is coming for AutoCompleteBox

1 Answer 61 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Subbarayudu
Top achievements
Rank 1
Subbarayudu asked on 13 Sep 2012, 03:11 PM
I am using AutoCompleteBox control
Inpage load I written below code

radtxtKeywordSearch.Filter =

 

RadAutoCompleteFilter.Contains;

 

radtxtKeywordSearch.Delimiter =

 

",";

 

 

 

string strcon = System.Configuration.ConfigurationManager.ConnectionStrings["con"].ToString();

 

 

 

SqlConnection con = new SqlConnection(strcon);

 

con.Open();

 

 

SqlDataAdapter adp = new SqlDataAdapter("select keywordsearch from tblkeywordsearch", con);

 

 

 

DataSet ds = new DataSet();

 

adp.Fill(ds);

radtxtKeywordSearch.DataSource = ds.Tables[0];

radtxtKeywordSearch.DataTextField =

 

"keywordsearch";

 

radtxtKeywordSearch.DataBind();

My query is in the textbox If I am entering example  "real"
then it will display what r the related words is there like intellisense  (like google )
if we want from that list we will select if not we will press Enter button
so whatever we entered that text only will be in the textbox that is scenario I need
but for me it is not like that
when i entered "real" it will display relatedwords right, first word is selecting
I entered " real"
            real player
            real estate
            realtek
is coming then i click enter it is selecting real player
but i dont want like i need whatever I entered  that only should be there when i click enter button
please suggest me ASAP.


1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 14 Sep 2012, 10:54 AM
Hi Rayudu,

Have you considered using the AllowCustomEntry property? When set to 'true', this property enables you to type any custom text in the input area and create an entry out of it.

An example is shown in the following online demo: http://demos.telerik.com/aspnet-ajax/autocompletebox/examples/default/defaultcs.aspx.

I hope this is helpful.

Regards,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
AutoCompleteBox
Asked by
Subbarayudu
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or