Do you have to have a DataSource defined in the .aspx for htis to work ?
What i was doing initially was databinding a list to my combobox in the code behind (page load)
I'm trying to get this working with automaticloadondemand but failing.
I've tried adding it into itemsrequested as well but no luck. I was hoping i'd be able to do this automatically rather than have to handle the request each time and have to calculate how many items are returned and what other ones need to display (showmoreresults box)
etc etc.
Regards,
Alan
5 Answers, 1 is accepted
Please refer to the following help article regarding the automatic load on demand functionality of the RadComboBox.
Regards,
Dimitar Terziev
the Telerik team

Hi Dimitar,
had already read that.
I'm unsure what i'm doing incorrectly.
<telerik:RadComboBox ID="cbo_accounts" runat="server" Width="300" MarkFirstMatch="true"
AutoPostBack="false"
EmptyMessage="Unspecified"
DataValueField="account_id"
DropDownWidth="550"
AllowCustomText="false" Filter="Contains"
LoadingMessage="Loading..."
OnClientFocus="singleSelect_RadComboBox_Focus"
DataTextField="e_mail"
OnClientBlur="singleSelect_RadComboBox_OnClientBlur"
HighlightTemplatedItems="true"
EnableVirtualScrolling="true"
ShowMoreResultsBox="true"
EnableAutomaticLoadOnDemand="true"
ItemsPerRequest="10">
On page load / ItemsRequested.
Me.cbo_accounts.DataSource = account.functions.get_account_list() (returns a list of my 'account' class)

nevermind, fixed it.
I had wrapped my datasource definition to only apply if the page is not a postback.

Can i get some clarification on this;
Am i correct in thinking, that the datasource is only executed on binding ? hopefully that makes sense.
So in this scenario, now everytime the page is loaded i'm saying hte datasource is this query. My question being, is that query executed every page load, or only when i either click or type in the combobox ?
In the help article which I've mentioned in my previous post it's stated:
In fact you can use all types of enumerable data sources with the DataSource property. In this case, it is important to note that you set the property on each postback. RadComboBox will automatically bind to the data source whenever a request for items is made.
In your case you should set the DataSource property upon each post-back and the RadComboBox will be populate whenever a request for items is initiated.
All the best,
Dimitar Terziev
the Telerik team