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

autopick autocomplete value in codebehind

1 Answer 23 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 03 Sep 2013, 07:04 PM
I am trying to replicate my asp.net ajax control toolkit autocompletes with the telerik version of the autocomplete.  I have everything working but one portion of it.  I have the control set to select one item only and the control to postback.  On text change I would like to populate the page with a users information from the value of the autocomplete box, but the text_changed event seems not to work for this control as I get no value in teh response.write

Protected Sub radAutoComplete_TextChanged(sender As Object, e As AutoCompleteTextEventArgs) Handles radAutoComplete.TextChanged
      Dim value As String = radAutoComplete.Entries(0).Value
 
      Response.Write(value)
      Response.End()
  End Sub


I do get a value if I attach to a linkbutton and do it this way, however then they have to pick on a button to produce results.  Currently on my Ajax toolkit autocompltes it is able to show results on a text_changed event.  So is there a way to do this with telerik autocomplete.
Protected Sub lnkView_Click(sender As Object, e As EventArgs) Handles lnkView.Click
       Dim value As String = radAutoComplete.Entries(0).Value
 
       Response.Write(value)
       Response.End()
   End Sub






































1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 06 Sep 2013, 01:13 PM
Hello Kevin,

I tired to replicate the described issue, but to no avail. Therefore, I had prepared  sample project for you, base on the provided code snippet, demonstrating the behavior at my end. Would you give it a try at your end and let me know if I had missed something. Please find the attached sample project.

Regards,
Nencho
Telerik
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 the blog feed now.
Tags
AutoCompleteBox
Asked by
Kevin
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or