If you want to dynamically create a RadComboBox
and bind it, you should first add it to the form's controls collections and after that set its DataSource
. As far as its style it concerned, a theme should be applied to the control.
Please refer to the code snippet below:
|RadComboBox box = new RadComboBox();
|box.DisplayMember = "name";
|box.ValueMember = "portfolioId";
|box.ThemeName = "ControlDefault";
|box.Top = 10;
|box.Left = 10;
|box.DataSource = p.DefaultView;
If you have additional questions, do not hesitate to contact me.
the Telerik team