0

Can I use the data from a server-side databound DropDownList or ASP.NET Gridview for a JQuery Autocomplete?

I understand these databound controls get rendered to client-side html anyway. Is there a way that the JQuery Autocomplete can use them?

Im thinking of databinding a Gridview, visble=false it, then populate the Jquery Autocomplete with it.

A.B. User
  • 443
  • 1
  • 8
  • 20

1 Answers1

0

What you need is to find the right selector, i don't really use webforms, but checking out questions here i found this question which discusses the problems related with it, one possible solution is to use something like this. Also this blog post might help.

$('#<%= gridview.ClientID %>').autocomplete({source:[]});
Community
  • 1
  • 1
thiagoleite
  • 503
  • 1
  • 3
  • 11