Hi,
How can I define the DataFormComboBoxField in my own Template?
Take telerik's code for testing:
The comboBox can't get the itemsSource, need help!
Thanks
How can I define the DataFormComboBoxField in my own Template?
Take telerik's code for testing:
<Grid.Resources>
<DataTemplate x:Key="MyTemplate">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<telerik:DataFormDataField Label="First Name" DataMemberBinding="{Binding FirstName, Mode=TwoWay}" />
<telerik:DataFormDataField Grid.Column="1" Label="Last Name" DataMemberBinding="{Binding LastName, Mode=TwoWay}" />
<telerik:DataFormComboBoxField Grid.Column="0" Grid.Row="1" Label="Occupation" Width="140"
ItemsSource="{Binding OccupationPositions}" />
</Grid>
</DataTemplate>
</Grid.Resources>
The comboBox can't get the itemsSource, need help!
Thanks