This is a migrated thread and some comments may be shown as answers.

[Solved] Programmatically create Multicolumn ComboBox

3 Answers 362 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 26 Mar 2008, 08:48 PM
Hi, I want to programmatically create a Prometheus ComboBox with multiple columns, databound to a datatable and added programmatically to a ASPX page.

Is this possible? 

I found references to sample code on creating multicolumn combobox controls (077086_ServerSideMultipleColumnsComboBox.zip) but this is a RadControls for ASP.NET sample that does not work with Prometheus.
In the method :public void InstantiateIn(Control container) on the line of code :DataRowView itemSource = (DataRowView)item.DataItem; the itemSource is NULL.

Thanks, Andy

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 31 Mar 2008, 07:38 AM
Hi A,

Please find attached a project which illustrates the creation of a Multi-column template programmatically, using a Custom Template class.

I hope it is useful.

Kind regards,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andy
Top achievements
Rank 1
answered on 02 Apr 2008, 02:42 PM
Hi,
   I reviewed the sample code and the control is being declared inthe ASPX page. I am creating the control exclusively in the code behind class (CreateChildControls method). 

I have gotten the RADComboBox to display, the only problem I have now is that the dropdown background is transparent and clicking on the items does not select them. I can use the autocomplete feature to select items. Also the drop down selector button is not displayed but rather the text "select" is displayed.

Thanks, AL
0
Simon
Telerik team
answered on 04 Apr 2008, 04:10 PM
Hello A,

You should manually register the skin used by RadComboBox on the page. Please read more about how to do this here.

Sincerely yours,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
Andy
Top achievements
Rank 1
Answers by
Simon
Telerik team
Andy
Top achievements
Rank 1
Share this question
or