I am new to the telerik controls so pardon my ignorance.
I have an AutoComplete box bound in code behind to an list.
When the webform loads I set the data souce. When i type a letter into the autocomplete box the form posts backs.
This is my code:
If Not IsPostBack Then
RadAutoCompleteBox1.DataSource = App.Clients.Items.Values.ToArray
Intuitively this does not work like i would think it should. am i doing something wrong here?
If I remove it from the if condition the box works but the page posts back every key press. Is this how its supposed to work?
If so my problem, is this. I have a radcombobox and when a user selects an item, using AJAX and client side, the datasource of the autocomplete changes based on the selection in the radcombo.
However when the user type a character the entire page posts back and i get the following error.
"The Control DataSource(or DataSourceID) is not set"
What i figured out is when the page posts back the autocomplete no longer has a binding and throws the error.
I had this working using two combo boxes but i wanted to us the autocomplete in place of the second combo.