I have a simple list with two properties namely Status name and StatusId
I tried to bind with the Dataformcomboboxfield in raddataform on control loaded event.
I set the DisplayMemberpath and selectedvalue path but sadly my Combobox is displaying me the Namespace of the Binded class not the actual values.
Following is my Implemented Code
The below code is what i have written in the StatusLoaded event where uxComboBindList is a list populated from database.
StatusName and StatusId are the properties of the class
On the UI i see the Namespace of the class not the Statusname .
Kindly help.
:)
I tried to bind with the Dataformcomboboxfield in raddataform on control loaded event.
I set the DisplayMemberpath and selectedvalue path but sadly my Combobox is displaying me the Namespace of the Binded class not the actual values.
Following is my Implemented Code
The below code is what i have written in the StatusLoaded event where uxComboBindList is a list populated from database.
StatusName and StatusId are the properties of the class
((Telerik.Windows.Controls.DataFormComboBoxField) sender).ItemsSource = uxComboBindList;
((Telerik.Windows.Controls.DataFormComboBoxField)sender).DisplayMemberPath =
"StatusName"
;
((Telerik.Windows.Controls.DataFormComboBoxField) sender). =
"StatusId"
;
<
telerik:DataFormComboBoxField
Loaded
=
"uxStatus_Loaded"
x:Name
=
"uxStatus"
/>
Kindly help.
:)