First part of this question: is this control still supported? I ask because according to http://docs.telerik.com/devtools/wpf/controls/radentityframeworkdatasource/entityframework-changes there hasn't been an update since 2013, yet Entity Framework itself has been updated multiple times since then.
The real question is: how to use this with Entity Framework 6.1?
When trying to use this control, I get this at runtime:
Exception thrown: 'System.MissingMethodException' in Telerik.Windows.Controls.EntityFramework.dll
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>Log Manager.vshost.exe</AppDomain><Exception><ExceptionType>System.MissingMethodException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Method not found: 'System.Data.Objects.ObjectContext System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()'.</Message><StackTrace> at Telerik.Windows.Controls.RadEntityFrameworkDataSource.get_EffectiveObjectContext()
I'm setting the DbContext like this: this.logsSource.DbContext = this.context;
According to http://www.telerik.com/forums/objectcontext-vs-dbcontext the DbContext property just calls ((System.Data.Entity.Infrastructure.IObjectContextAdapter)this.DbContext).ObjectContext;
But I don't think that's correct, as I've tried doing the same thing myself and setting the ObjectContext property, but that property insists that ObjectContext come from System.Data.Objects, so the above line would never work.
So I'm confused, and looking for suggestions, please.
I can't seem to get my WPF application to compile properly. Telerik Version 2016.3.914.45
I had the 'SelectionChanged' event set on a RadGridView, and I needed to change it to 'SelectionChanging'. Now I can't run the application as the compiler is telling me :
"The member "SelectionChanging" is not recognized or is not accessible."
"The property 'SelectionChanging' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'."
The same property is set in other files and compiles correctly.
Also on just one RadComboBox I'm getting:
"The property 'SelectionChanging' was not found in type 'RadComboBox'. "
What is up with this property? I have tried cleaning my solution, rebooting my computer, removing the Telerik.Windows.Controls.GridView reference and re-adding it. What else can I try to get this property to work correctly?
Hello Telerik,
I have carefully read the examples you provided here and this one in particular seems to be the one I need
[C#] Example 4: A custom FilterDescriptor
// Give me all people that are with first name John.
var fd =
new
FilterDescriptor();
fd.Member =
"FirstName"
;
fd.Operator = FilterOperator.IsEqualTo;
fd.Value =
"John"
;
fd.IsCaseSensitive =
true
;
// In most cases the data engine will discover this automatically so you do not need to set it.
fd.MemberType =
typeof
(
string
);
It works. The grid starts filtered as expected, however it is not possible for the user to revert that initial filter.
Is there anything missing? I tried to find a running example for those filterdescriptors, but i couldn't. If there is one, can you please provide it?
Thank you!
Hi to all,
I would to "sync" two GridView, my goal is allow the user to compare two lists, when he moves by scrollbar, both lists are moved in the same way.
Does anyone have any idea?
I am looking for a wpf datagrid (teleriks wpf RadGridView) that supports, all of the following at the same time
• (1) column header filtering, sorting,
• (2) multi cell/row editing,
• (3) data virtualization (lazy data loading as you scroll),
• (4) and data via OData V4 (which does not support the DateTime data type, but rather supported is the DateTimeOffset data type)
Does the Telerik WPF RadDataView – allow this??
I looked at the features of your data grid here:
But it is hard to see if it is supporting requirements (1) – (4) listed above at the same time.
Also no mention of DateTimeOffset columns or OData V3 (or !) V4 are mentioned in your features listing.
The DataGrid we are looking for must not internally convert a DateTimeOffset Column (eg while filterng) to DateTime as this causes the request sent to the backend to fail (as with OData V4 we do not support the DateTime type for properties of our data objects).
Regards,
Paul
Hi all,
I thought a PivotGrid would be the perfect control to show a square matrix which values can beSelected dynamically using the RadPivotFieldList. But I'm unable to understand how I should model my data to leverage the PivotGrid builtin capabilities (like filtering). I can build the model I want. What I have now is a list of object that have the following fields:
Title1 Title2 X Y Z
A A x1 y1 z1
A B x2 y2 z2
A C x3 y3 z3
B A x4 y4 z4
B B x5 y5 z5
B C x6 y6 z6
C A x7 y7 z7
C B x8 y8 z8
C C x9 y9 z9
The UI result I'm looking for is a 3x3 matrix/grid
A B C
A x1 x2 x3
B x4 x5 x6
C x7 x8 x9
Where the xi can be changed to yi and zi using the RadPivotFieldList control.
This example has only 3 different values {A, B, C} but this list is much bigger in reality, hence the filtering feature need.
Thanks for your help
Hi
I am trying to create a dynamic point series chart on DateTimeContinuousAxes but getting "No Series Added" message.
Here is the model classes I use:
01.
public
class
SeriesModel{
02.
public
ObservableCollection<DataPointModel> Items {
get
;
set
; }
03.
}
04.
public
class
DataPointModel {
05.
public
DateTime Date {
get
;
set
; }
06.
public
int
NodeId {
get
;
set
; }
07.
}
08.
09.
// In the MainWindow() constructor I create and populate Data collection
10.
// with SeriesModel collections - one for each series.
11.
ObservableCollection<SeriesModel> Data =
new
ObservableCollection<SeriesModel>();
Here is a fragment of XAML I use for creating a dynamic pointseries chart:
01.
<
telerik:RadCartesianChart.HorizontalAxis
>
02.
<
telerik:DateTimeContinuousAxis
/>
03.
</
telerik:RadCartesianChart.HorizontalAxis
>
04.
05.
<
telerik:RadCartesianChart.SeriesProvider
>
06.
<
telerik:ChartSeriesProvider
Source
=
"{Binding Data}"
>
07.
<
telerik:ChartSeriesProvider.SeriesDescriptors
>
08.
<
telerik:ChartSeriesDescriptor
ItemsSourcePath
=
"Items"
>
09.
<
telerik:ChartSeriesDescriptor.Style
>
10.
<
Style
TargetType
=
"telerik:PointSeries"
>
11.
<
Setter
Property
=
"CategoryBinding"
Value
=
"Date"
/>
12.
<
Setter
Property
=
"ValueBinding"
Value
=
"NodeId"
/>
13.
</
Style
>
14.
</
telerik:ChartSeriesDescriptor.Style
>
15.
</
telerik:ChartSeriesDescriptor
>
16.
</
telerik:ChartSeriesProvider.SeriesDescriptors
>
17.
</
telerik:ChartSeriesProvider
>
18.
</
telerik:RadCartesianChart.SeriesProvider
>
Could you please help to find an error in this code?
Regards,
Vlad
The Grid is having two columns which are using two cell templates and not using any RowDetails template.
While adding a new row, i need to click on "+" button and need to click again on the left end of the row to see the expanded row with loaded cell templates.
But i want to achieve with only single click "+" to add a expanded row.
Below is the code snippet used for the grid:
<views:RadGridView x:Name="datasource" Grid.Row="1" ItemsSource="{Binding Path=DataSource.StructuredParties}"
Margin="5" AutoGenerateColumns="False" ShowGroupPanel="False" IsFilteringAllowed="False"
CanUserSortColumns="False" VerticalAlignment="Top" ShowInsertRow="True"
SelectedItem="{Binding SelectedPartyModel}" KeyboardNavigation.TabNavigation="Continue"
CellEditEnded="FwAbstractEntityGridView_CellEditEnded" Deleting="FwAbstractEntityGridView_Deleting">
<views:RadGridView.Columns>
<views:RadGridViewDataColumn
Header="{x:Static Resources:OcrMessages.PartyTypeColumnHeader}"
DataMemberBinding="{Binding Converter={StaticResource partyNameConverter}}"
CellTemplate="{StaticResource DataEditTemplate}" Width="*" />
<views:RadGridViewDataColumn Header="{x:Static Resources:OcrMessages.PartySharePortionColumnHeader}"
DataMemberBinding="{Binding GroupShare, Converter={StaticResource zeroNumberConverter}}"
CellTemplate="{StaticResource SharePortionEditTemplate}" Width="Auto" />
</views:RadGridView.Columns>
</views:RadGridView>