I have two issues after updating from one set of components to another.
1) I previously had the following lines of code which, regardless of grouping/sorting, gave me a collection of objects currently viewable in the grid:
foreach (GBundlingTradeOutput item in gridTradePackages.Items)
{
projects.Add(item);
}
When the code runs now I receive an error of the following:
Additional information: Unable to cast object of type 'Telerik.Windows.Data.AggregateFunctionsGroup' to type 'PostContract.Common.Classes.GBundlingTradeOutput'.
Why the change and how do i return to the functionality originally intended?
2) I have two datetime properties on objects bound to a grid. When i click on the cell I get the calendar picker and I can select a date which enters the value correctly in the cell. If I enter a value manually such as 01/02/2012 the value doesn't get bound to the property. Is this related to culture? I have a line of code:
this.Language = XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag);
The grid columns are as follows in the xaml:
<telerik:GridViewDataColumn Width="200"
DataMemberBinding="{Binding Path=AppointmentDate,
UpdateSourceTrigger=PropertyChanged}"
Header="Latest Appointment Date" DataFormatString="{} {0:d}"
TextWrapping="Wrap" >
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Width="140"
DataMemberBinding="{Binding Path=StartDate,
UpdateSourceTrigger=PropertyChanged}"
Header="Start on Site Date" DataFormatString="{} {0:d}"
TextWrapping="Wrap" >
Many thanks.
Rob
1) I previously had the following lines of code which, regardless of grouping/sorting, gave me a collection of objects currently viewable in the grid:
foreach (GBundlingTradeOutput item in gridTradePackages.Items)
{
projects.Add(item);
}
When the code runs now I receive an error of the following:
Additional information: Unable to cast object of type 'Telerik.Windows.Data.AggregateFunctionsGroup' to type 'PostContract.Common.Classes.GBundlingTradeOutput'.
Why the change and how do i return to the functionality originally intended?
2) I have two datetime properties on objects bound to a grid. When i click on the cell I get the calendar picker and I can select a date which enters the value correctly in the cell. If I enter a value manually such as 01/02/2012 the value doesn't get bound to the property. Is this related to culture? I have a line of code:
this.Language = XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag);
The grid columns are as follows in the xaml:
<telerik:GridViewDataColumn Width="200"
DataMemberBinding="{Binding Path=AppointmentDate,
UpdateSourceTrigger=PropertyChanged}"
Header="Latest Appointment Date" DataFormatString="{} {0:d}"
TextWrapping="Wrap" >
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Width="140"
DataMemberBinding="{Binding Path=StartDate,
UpdateSourceTrigger=PropertyChanged}"
Header="Start on Site Date" DataFormatString="{} {0:d}"
TextWrapping="Wrap" >
Many thanks.
Rob