Before going any further, please take 5 minutes to follow the tutorial in the DataForm DataSourceKey Attribute documentation. You can also visit the SDKBrowser DataForm Editors demo source code (it uses a PickerEditor for the Genre property, see the UserDataSourceProvider class).
This is a critical piece of information to understand how items are set to editors that show a list of items.
Passing Fruits Collection
To directly answer your question, this isn't something you can directly bind to by itself. You need to use the provider as seen in the documentation I linked to.
That being said, you can design the provider class to accept a collection of items that you pass to it. For example, using the Locations demo from the tutorial:
public class FruitsProvider : PropertyDataSourceProvider
private IEnumerable<FruitModel> fruits;
public FruitsProvider(IEnumerable<FruitModel> sourceFruits)
this.fruits = sourceFruits;
public override IList GetSourceForKey(object key)
if (key.ToString() == "FruitsSource")
Now, you can instantiate the provider with your FruitData
dataForm.PropertyDataSourceProvider = new FruitsProvider(this.FruitData);
I hope this helps answer your question.
Lance | Team Lead - US DevTools Support
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items