This is a migrated thread and some comments may be shown as answers.

Upgraded to Q2 13 from Q1 13 - some issues

3 Answers 11 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 18 Oct 2013, 03:08 PM
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

3 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 21 Oct 2013, 03:11 PM
Hello Rob,

Unfortunately, we were not able to reproduce the exception due to a lot of missing information about your setup. As the second problem you reported is fixed with our latest official release - Q3 2013, I would suggest you to download it and to give it a try. In case you still get the exception, please open a support ticket and attach a sample demonstrating the issue so we can debug on our side.




Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Rob
Top achievements
Rank 1
answered on 21 Oct 2013, 05:31 PM
Hi Vera,

Please explain the detail required to help diagnose the 1st issue and I will reply straight away.

Thanks,

Rob
0
Vera
Telerik team
answered on 22 Oct 2013, 07:46 AM
Hi Rob,

Please take a look at this blog post for a reference on how to isolate a problem in a sample project.


Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Rob
Top achievements
Rank 1
Answers by
Vera
Telerik team
Rob
Top achievements
Rank 1
Share this question
or