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

Bind Domain Source as well as adding items through code behind to single radcombobox

1 Answer 51 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Sagar
Top achievements
Rank 1
Sagar asked on 02 Nov 2010, 11:36 AM
Can we attach domain data source (ria control) and also add items through code behind to one rad combo box in Silverlight?

Suppose I've have domain source which returns list of employees which I've bound to RadComboBox (Through xaml)
and in code behind,on certain condition i want to append keyword "Inactive" before employee name.
eg.
ComboBox Items-
John
Sawyer
Kate

and want to show
Inactive Kate

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 05 Nov 2010, 09:33 AM
Hi Sagar,

I would suggest you to use a MVVM pattern in order to accomplish this. You could bind the RadComboBox to an object and change the Name of the Employee in the ViewModel. For more information about populating the RadComboBox with data, please refer to our online documentation - http://www.telerik.com/help/silverlight/radcombobox-populating-with-data-overview.html 

I hope this helps.

Regards,
George
the Telerik team
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Sagar
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or