After assigning GridView ItemsSource to an ObjectSet<Company> as below:
radGridView.ItemsSource = context.Companies
(context is the ObjectContext from Entity Framework 4.0), the only way to automatically get the GridView updated with inserted/deleted items is by calling context.SaveChanges(); this approach is not well suitable, at least, for my needs since I’ve to commit any single change instead of gathering all changes, grouping and filtering on row state (see EntityState property and Added, Modified and Unmodified values), and finally committing.
Where my approach is correct, due to the relevance of Entity Framework in .NET 4.0 platform, are you planning a tighter integration? If yes, what and when?
Thanks
Hello,
I have a chart with 8 data series, like the live data example in the WPF Demos.
I want to hide one ore more of these series, I tried to set the SeriesVisibility of the corresponding SeriesMapping, but it doesn't seem to work. How can I achieve this without removing the SeriesMapping?
<telerik:GridViewDataColumn Header="Criteria" CellEditTemplateSelector="{StaticResource CellEditTemplateSelector}" CellTemplateSelector="{StaticResource CellTemplateSelector}"/> |
return (container as GridViewCell).FindResource("RangeGridSelector") as DataTemplate; |
<DataTemplate x:Key="RangeGridSelector"> |
<telerik:RadGridView AutoGenerateColumns="False" |
ShowGroupPanel="False" |
CanUserReorderColumns="False" |
ItemsSource="{Binding Path=Criterias}"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewSelectColumn /> |
<telerik:GridViewDataColumn Header="Criteria" DataMemberBinding="{Binding}"/> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
</DataTemplate> |