I am using a DataSource and a DataForm with a DataTemplate in WPF. In principle it works.
DataSource:
<telerik:RadEntityFrameworkDataSource Name="AcademicTitleDataSource" QueryName="CatalogEntries">
<telerik:RadEntityFrameworkDataSource.DbContext>
<local:MyEntities x:Name="AcademicTitleContext" />
</telerik:RadEntityFrameworkDataSource.DbContext>
</telerik:RadEntityFrameworkDataSource>
DataFormComboBoxField:
<telerik:DataFormComboBoxField x:Name="AcademicTitleComboBox" Grid.Column="0" Grid.Row="7" Label="Titel:"
ItemsSource="{Binding DataView, ElementName=AcademicTitleDataSource}"
DataMemberBinding="{Binding AcademicTitle}"
SelectedValuePath="ID"
DisplayMemberPath="EntryName" />
Now i want to display only certain items from the CatalogEntries wherw the CatalogID = 5. How can i filtering the Data?
DataSource:
<telerik:RadEntityFrameworkDataSource Name="AcademicTitleDataSource" QueryName="CatalogEntries">
<telerik:RadEntityFrameworkDataSource.DbContext>
<local:MyEntities x:Name="AcademicTitleContext" />
</telerik:RadEntityFrameworkDataSource.DbContext>
</telerik:RadEntityFrameworkDataSource>
DataFormComboBoxField:
<telerik:DataFormComboBoxField x:Name="AcademicTitleComboBox" Grid.Column="0" Grid.Row="7" Label="Titel:"
ItemsSource="{Binding DataView, ElementName=AcademicTitleDataSource}"
DataMemberBinding="{Binding AcademicTitle}"
SelectedValuePath="ID"
DisplayMemberPath="EntryName" />
Now i want to display only certain items from the CatalogEntries wherw the CatalogID = 5. How can i filtering the Data?