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

ListBox Add Item as object (not RadItem)

1 Answer 69 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
SelAromDotNet
Top achievements
Rank 2
SelAromDotNet asked on 05 Dec 2009, 12:35 AM
the built-in windows forms listbox allows you to add items as objects, however the radlistbox forces you to add a listboxitem. why is that?

this is especially confusing because the SelectedItem property returns an object and NOT a RadItem.

I want to be able to add an object like I do for a regular listbox. can this be done?

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 08 Dec 2009, 09:11 AM
Hi Josh,

Thank you for writing. I agree that this is not consistent with the standard WinForms model but I am afraid that this is a legacy API that we have to support in order not to break any existing application. System.Object can not be directly added as an item to the RadListBox and you will have to create a RadListBoxItems and decorate them with the necessary data manually or use data binding. Please write again if you have other questions.

All the best,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
SelAromDotNet
Top achievements
Rank 2
Answers by
Victor
Telerik team
Share this question
or