RadComboBox supports codeless or Automatic Load On Demand with all kinds of data sources. This particular demo demonstrates
how to implement Load On Demand binding with EntityFramework.
Setting up the automatic Load On Demand is straightforward:
- Set the DataSourceID property to the ID of the data source and
the DataTextField and DataValueField properties
to the respective fields in the data items returned by it.
- Set EnableAutomaticLoadOnDemand to true.
- (Optional) Set ShowMoreResultsBox/EnableVirtualScrolling to
true to enable the respective features.
- (Optional) Set ItemsPerRequest to the number of Items you would
like to load per request. The default (-1) loads all Items at once.
Note: When you use the DataSourceID or DataSource properties to bind RadComboBox
during automatic Load On Demand the
ItemDataBound event fires normally, which means that you can use it to change
the Item's Text and Value properties as well as modify its Attributes collection
based on the DataItem, etc.