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

RadGridView crashes on binding exception

6 Answers 179 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Davidm
Top achievements
Rank 1
Davidm asked on 16 Dec 2011, 08:55 PM
I think I found a bug. When an exception is thrown from a binding on a GridViewDataColumn the whole application crashes with the following error line:
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(System.Windows.Size constraint) Line 6969 + 0x2b bytes

Is this an error in the RadGridView? I tried the same on the .Net integrated DataGrid and it doesn't crash when an exception is thrown by a binding.

6 Answers, 1 is accepted

Sort by
0
Davidm
Top achievements
Rank 1
answered on 22 Dec 2011, 05:16 PM
Update: I've testet this with the newest version 2011.3.1220.40 and it still crashes when a binding exception is thrown. How can I handle these exceptions or is this a bug that has to be fixed?
0
Pavel Pavlov
Telerik team
answered on 26 Dec 2011, 03:02 PM
Hi David ,
Thanks for reporting the problem . I am trying to reproduce it locally . Can you please  share the setup of RadGridView which exposes the erroneous behavior. The XAML where RadGridView is instantiated would be helpful here.

Kind regards,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Davidm
Top achievements
Rank 1
answered on 26 Dec 2011, 07:59 PM
Hello Pavel, I've created a little demo project which demonstrates the difference between the .Net integrated DataGrid and the RadDataGrid. I can send it to you if you send me your e-mail address. I i've used the version 2011.3.1116.40 for this example, but with the latest version it also crashes. The RadGridView in the demo project has just this little piece of xaml code. The Exception is thrown by the entity framework because there is a missing row in the many to one related Table.

<telerik:RadGridView Name="radGridView1" AutoGenerateColumns="False">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="ID" DataMemberBinding="{Binding ID}" />
        <telerik:GridViewDataColumn Header="Table1 ID" DataMemberBinding="{Binding Table1.ID}" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>
0
Vlad
Telerik team
answered on 27 Dec 2011, 08:49 AM
Hello,

 You can open support ticket and attach the project. 

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Davidm
Top achievements
Rank 1
answered on 27 Dec 2011, 11:29 AM
I've created the support ticket 496215 for this problem.
0
Nedyalko Nikolov
Telerik team
answered on 27 Dec 2011, 04:20 PM
Hello,

Thank you for the sample project. We've managed to spot the problem and we'll fix it for the next internal build.
The problem comes from the fact that for the second line navigation property returns no value which results in an exception.

P.S. I've added 1000 Telerik points to your account accordingly.

All the best,
Nedyalko Nikolov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Davidm
Top achievements
Rank 1
Answers by
Davidm
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Vlad
Telerik team
Nedyalko Nikolov
Telerik team
Share this question
or