I had an auto-generated RadDataForm but need to rearrange some of the fields and don't have access to the objects to put "Order=#"...
So I made a DataTemplate, but my combobox is not pulling in the enums that it should in the last combobox. How can I make it retrieve the enums like when it is auto-generated?
So I made a DataTemplate, but my combobox is not pulling in the enums that it should in the last combobox. How can I make it retrieve the enums like when it is auto-generated?
public enum CCTypes : int {
VISA = 1,
AmericanExpress = 2,
MasterCard = 3,
Discover = 4,
}
<
DataTemplate
x:Key
=
"BInfoDataFormTemplate"
>
<
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
telerik:DataFormDataField
x:Name
=
"firstName"
DataMemberBinding
=
"{Binding FirstName, Mode=TwoWay}"
Label
=
"First Name"
IsRequired
=
"True"
Width
=
"300"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Width
=
"300"
>
<
telerik:DataFormDataField
x:Name
=
"lastName"
DataMemberBinding
=
"{Binding LastName, Mode=TwoWay}"
Label
=
"Last Name"
IsRequired
=
"True"
Width
=
"300"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Width
=
"300"
>
<
telerik:DataFormDataField
x:Name
=
"streetAddress"
DataMemberBinding
=
"{Binding StreetAddress, Mode=TwoWay}"
Label
=
"Street Address"
IsRequired
=
"True"
Width
=
"300"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Width
=
"300"
>
<
telerik:DataFormDataField
x:Name
=
"suiteApartment"
DataMemberBinding
=
"{Binding SuiteApt, Mode=TwoWay}"
Label
=
"Suite / Apt. Number"
IsRequired
=
"True"
Width
=
"300"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Width
=
"300"
>
<
telerik:DataFormDataField
x:Name
=
"city"
DataMemberBinding
=
"{Binding City, Mode=TwoWay}"
Label
=
"City"
IsRequired
=
"True"
Width
=
"300"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Width
=
"300"
>
<
telerik:DataFormDataField
x:Name
=
"state"
DataMemberBinding
=
"{Binding State, Mode=TwoWay}"
Label
=
"State"
IsRequired
=
"True"
Width
=
"300"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Width
=
"300"
>
<
telerik:DataFormDataField
x:Name
=
"zip"
DataMemberBinding
=
"{Binding Zip, Mode=TwoWay}"
Label
=
"ZIP Code"
IsRequired
=
"True"
Width
=
"300"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Width
=
"300"
>
<
telerik:DataFormComboBoxField
x:Name
=
"cardType"
DataMemberBinding
=
"{Binding CardType, Mode=TwoWay}"
Label
=
"Card Type"
IsRequired
=
"True"
Width
=
"300"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Width
=
"300"
>
<
telerik:DataFormDataField
x:Name
=
"cardNumber"
DataMemberBinding
=
"{Binding CCNumber, Mode=TwoWay}"
Label
=
"Card Number"
IsRequired
=
"True"
Width
=
"300"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Width
=
"300"
>
<
telerik:DataFormDateField
x:Name
=
"cardExpDate"
DataMemberBinding
=
"{Binding CCExpirationDate, Mode=TwoWay}"
Label
=
"Expiration Date"
IsRequired
=
"True"
Width
=
"300"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Width
=
"300"
>
<
telerik:DataFormDataField
x:Name
=
"cardSecNumber"
DataMemberBinding
=
"{Binding SecurityCode, Mode=TwoWay}"
Label
=
"Security Code"
IsRequired
=
"True"
Width
=
"300"
/>
</
StackPanel
>
</
StackPanel
>
</
DataTemplate
>