Hello,
I working with RadDataForm and Custom template.
I was using this and it was working.
But I need to use a RadComboBox For doing some specific stuff so I change my code like this.
But that introduce a problem and the binding on my attribute VehicleCategory is not working anymore.
Any problem with my code?
I prefer correcting this before introducing a special template for the RadComboBox.
Thank you,
I working with RadDataForm and Custom template.
I was using this and it was working.
<
telerik:DataFormComboBoxField
Grid.Row
=
"2"
MinHeight
=
"28"
ItemsSource
=
"{Binding VehicleCategories, Source={StaticResource locationVM}}"
DataMemberBinding
=
"{Binding VehicleCategory}"
DisplayMemberPath
=
"Label"
SelectedValuePath
=
"Code"
>
</
telerik:DataFormComboBoxField
>
<
telerik:DataFormComboBoxField
Grid.Row
=
"2"
MinHeight
=
"28"
>
<
telerik:DataFormComboBoxField.ContentTemplate
>
<
DataTemplate
>
<
telerik:RadComboBox
ItemsSource
=
"{Binding VehicleCategories, Source={StaticResource locationVM}}"
SelectedItem
=
"{Binding VehicleCategory}"
DisplayMemberPath
=
"Label"
SelectedValuePath
=
"Code"
/>
</
DataTemplate
>
</
telerik:DataFormComboBoxField.ContentTemplate
>
</
telerik:DataFormComboBoxField
>
But that introduce a problem and the binding on my attribute VehicleCategory is not working anymore.
Any problem with my code?
I prefer correcting this before introducing a special template for the RadComboBox.
Thank you,