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

[Solved] Grid throws ContentHorizontalOffset exceptions

5 Answers 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jerry Kurata
Top achievements
Rank 1
Jerry Kurata asked on 24 Dec 2010, 02:19 AM
Hi.

I have noticed the following exception being occasionally thrown from my grid.  Can someone help me determine what could cause this issue?

System.Windows.Data Error: BindingExpression path error: 'ContentHorizontalOffset' property not found on 'DartData.Models.DartDataRow' 'DartData.Models.DartDataRow' (HashCode=11114581). BindingExpression: Path='ContentHorizontalOffset' DataItem='DartData.Models.DartDataRow' (HashCode=11114581); target element is 'System.Windows.Controls.Border' (Name='SelectionBackground'); target property is 'Clip' (type 'System.Windows.Media.Geometry')..

System.Windows.Data Error: BindingExpression path error: 'ContentHorizontalOffset' property not found on 'DartData.Models.DartDataRow' 'DartData.Models.DartDataRow' (HashCode=11114581). BindingExpression: Path='ContentHorizontalOffset' DataItem='DartData.Models.DartDataRow' (HashCode=11114581); target element is 'System.Windows.Controls.Border' (Name='Background_Over'); target property is 'Clip' (type 'System.Windows.Media.Geometry')..

System.Windows.Data Error: BindingExpression path error: 'ContentHorizontalOffset' property not found on 'DartData.Models.DartDataRow' 'DartData.Models.DartDataRow' (HashCode=11114581). BindingExpression: Path='ContentHorizontalOffset' DataItem='DartData.Models.DartDataRow' (HashCode=11114581); target element is 'System.Windows.Controls.Border' (Name='Background_Selected'); target property is 'Clip' (type 'System.Windows.Media.Geometry')..

System.Windows.Data Error: BindingExpression path error: 'ContentHorizontalOffset' property not found on 'DartData.Models.DartDataRow' 'DartData.Models.DartDataRow' (HashCode=11114581). BindingExpression: Path='ContentHorizontalOffset' DataItem='DartData.Models.DartDataRow' (HashCode=11114581); target element is 'System.Windows.Controls.Border' (Name='Background_Invalid'); target property is 'Clip' (type 'System.Windows.Media.Geometry')..

System.Windows.Data Error: BindingExpression path error: 'ContentHorizontalOffset' property not found on 'DartData.Models.DartDataRow' 'DartData.Models.DartDataRow' (HashCode=11114581). BindingExpression: Path='ContentHorizontalOffset' DataItem='DartData.Models.DartDataRow' (HashCode=11114581); target element is 'System.Windows.Controls.Border' (Name='PART_RowBorder'); target property is 'Clip' (type 'System.Windows.Media.Geometry')..

System.Windows.Data Error: BindingExpression path error: 'ContentHorizontalOffset' property not found on 'DartData.Models.DartDataRow' 'DartData.Models.DartDataRow' (HashCode=11114581). BindingExpression: Path='ContentHorizontalOffset' DataItem='DartData.Models.DartDataRow' (HashCode=11114581); target element is 'System.Windows.Controls.ContentPresenter' (Name='PART_HierarchyChildPresenter'); target property is 'Clip' (type 'System.Windows.Media.Geometry')..

System.Windows.Data Error: BindingExpression path error: 'ContentHorizontalOffset' property not found on 'DartData.Models.DartDataRow' 'DartData.Models.DartDataRow' (HashCode=11114581). BindingExpression: Path='ContentHorizontalOffset' DataItem='DartData.Models.DartDataRow' (HashCode=11114581); target element is 'System.Windows.Controls.Border' (Name=''); target property is 'Clip' (type 'System.Windows.Media.Geometry')..

5 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 27 Dec 2010, 08:15 AM
Hi Jerry Kurata,

This issue has already been resolved. So, please try your application with the assemblies from our Q3 2010 release.

 

Kind regards,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Jerry Kurata
Top achievements
Rank 1
answered on 27 Dec 2010, 05:26 PM
Maya,

Thank you for the reply.  When it is is feasible I will try that build.

BTW, would this exception cause cells to appear blank?
0
Vlad
Telerik team
answered on 28 Dec 2010, 07:49 AM
Hello,

 This exception was just a wrong binding to a custom dependency property not related to cells - should not cause any problems with cells. 

Kind regards,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Jerry Kurata
Top achievements
Rank 1
answered on 28 Dec 2010, 05:04 PM
Thanks Vlad,

Would you happen to know under what cicumstances the exception appears?  We have not upgraded the library in several months and this exception had not appeared until we made some recent grid changes.  I am concerned that we are not doing something correctly.

Thanks,

Jerry
0
Vlad
Telerik team
answered on 29 Dec 2010, 07:59 AM
Hi Jerry,

 The exception should be raised during scrolling for recycled elements not part of the visual tree. I don't believe that you've made something wrong - this was just a case that was not handled on our end. 

Regards,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Jerry Kurata
Top achievements
Rank 1
Answers by
Maya
Telerik team
Jerry Kurata
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or