autopick autocomplete value in codebehind

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    265 posts
    Member since:
    Jun 2011

    Posted 03 Sep 2013 Link to this post

    I am trying to replicate my 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
      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
       End Sub

  2. Nencho
    Nencho avatar
    1446 posts

    Posted 06 Sep 2013 Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top