.net - How to force AutoCompleteBox control to populate the ItemSource only after n chars are entered? -


is possible force autocompletebox control in silverlight application start obtaining itemsource data after n chars entered (the data filtering mode startswith?

thanks,

here way bind itemssources (basically there combobox stands stetes. , once state selected set itemssource of autocompletebox control. seems before type 3 chars db call done -checked sql profiler-):

this xaml :

<input:autocompletebox name="autocompcity" grid.column="1" grid.row="2"  horizontalalignment="left"  verticalalignment="bottom" width="180" minimumpopulatedelay="10" minimumprefixlength="3"  filtermode="startswith" maxdropdownheight="150"   valuememberpath="cityname" text="enter city"  istextcompletionenabled="true"></input:autocompletebox> 

and code-behind:

private void combostate_selectionchanged(object sender , selectionchangedeventargs e)      {       if (selectedstate== null)        return;        bindcityautocompletebox();      }   private void bindcityautocompletebox()  {   autocompcity.isenabled = true;   autocompcity.itemssource = getcitylist(selectedstate, selectedcountry);  } 

set minimumprefixlength property number of characters want.


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -