Enum description in combo box

How to display a description of enum in the textbox when it is selected from the Combobox?

1 Reply 1 reply marked as answer

VR Vijayalakshmi Roopkumar Syncfusion Team November 4, 2020 01:53 PM UTC

Hi Harsh, 
 
Thank you for your using our Syncfusion Products. 
 
We have checked the reported requirement about how to display the Selected value from ComboBox in textbox. For this requirement you can use the SelectedValuePath and SelectedItem property of ComboBoxAdv as shown in the following code: 
 
Code: 
 
 
<syncfusion:ComboBoxAdv 
Name="comboBox1" 
Width="150" 
DisplayMemberPath="Value" 
ItemsSource="{Binding SelectedEngineTypeCollection}" 
SelectedValue="{Binding ComboBoxSelectedValue}" 
SelectedValuePath="Key" /> 
 
<Label 
Width="150" 
Margin="30" 
Content="{Binding ComboBoxSelectedValue}" /> 
 
 
 
 
Please let us know if you have any other concerns. 
 
Regards, 
Vijayalakshmi VR  


Marked as answer
Loader.
Up arrow icon