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

Enum Property binding to RadCombobox

6 Answers 1565 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Dharmavaram
Top achievements
Rank 1
Dharmavaram asked on 18 May 2017, 12:14 PM

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

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 23 May 2017, 08:13 AM
Hi Dharmavaram,

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
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
0
Arnaud
Top achievements
Rank 1
answered on 22 May 2019, 08:14 AM
Hello, example with RadComboBox (not ComboxColumn!) would be appreciated. thx.
0
Dinko | Tech Support Engineer
Telerik team
answered on 27 May 2019, 07:31 AM
Hello Arnaut,

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
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Dinko | Tech Support Engineer
Telerik team
answered on 27 May 2019, 12:49 PM
Hi Arnaut,

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
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Susmitha
Top achievements
Rank 1
Veteran
Iron
answered on 29 Apr 2020, 06:50 AM

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

0
Dinko | Tech Support Engineer
Telerik team
answered on 01 May 2020, 01:40 PM

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

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
ComboBox
Asked by
Dharmavaram
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Arnaud
Top achievements
Rank 1
Susmitha
Top achievements
Rank 1
Veteran
Iron
Share this question
or