Hello Grant,
Thank you for writing.
The reason why you cannot bind RadDropDownList while not in a form is that it uses the
BindingContext of the form to get the
CurrencyManager which is used to parse the DataSource. Since all the controls are UI elements their purpose is to be added to a Form or a UserControl. If you want to use the DataSource property in such automated tests you should also create a form and add the DropDownList to the Form:
Another way is to add items to the DropDownList directly using the ItemsCollection:
I hope this helps.
Regards,
George
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time.
Watch the videos and start improving your app based on facts, not hunches.