Hi
I am binding RadCombobox ItemSource with IEnumerable<Telerik.Windows.Data.EnumMemberViewModel> type enum Values and SelectedItem with one of the viewModel property of type enum but it is not working.
How to bind Radcombobox with Enum Values and property of type Enum as selectedItem.
Regards,
Nagasree
6 Answers, 1 is accepted
Thank you for contacting us.
You can take a look at the EnumDataSource help article in our documentation which describes how you can bind the RadComboBox or a GridViewComboBoxColumn to an Enum. There is also a demo available in our WPF Controls Demo Application in the RadGridView section named EnumDataSource.
Regards,
Dinko
Telerik by Progress
I need a little more time to prepare a sample project. Will contact you again later today with the project.
Thank you for your patience.
Regards,
Dinko
Progress Telerik
Thank you for your patience.
I have created a sample project which demonstrate you can shows values of a enum inside a RadComboBox control. You can find the project attached to this reply.
Hope this project will work for you.
Regards,
Dinko
Progress Telerik
Hi Dinko,
I have an issue somewhat related to this, But not exactly ,I have an object which contain 2 Enums and another object
I have an instance of this object in my View model which implements INotifyPropertyChanged .Even my object also implements INotifyPropertyChanged.
Now I have to bind these 3 properties(Enum+ object(which again having some properties and a list,this list i bind to the 3rd combo box)) to 3 combo boxes.
Binding works fine & the combo box displays data.
I bind these and when a selection change is happening it getting notification in the child properties(Enum & object),not in the View model parent instance.
I tried to bind Selected Item of combo box to the vie model instance still no changes inn the result.
Is there any way to get notifications in the parent object other than implementing a custom propagator.
Thanks in Advance
Susmitha
Hi Susmitha,
To avoid any misunderstanding, is it possible to modify the project in my previous reply to mimic your set-up. Then you can send it back to me for further investigation. This way, I can directly debug it on my side and think for a solution.
I am looking forward to your reply.
Regards,
Dinko
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.