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

Invalid property or field - '[FieldName]' for type: Object

3 Answers 294 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brian Lampe
Top achievements
Rank 1
Brian Lampe asked on 17 Jun 2010, 07:02 PM
I've done some searching, but I didn't see this issue anywhere.  Please forgive me if I'm duplicating.  There are two issues but they appear related.

Issue #1

I have a RadOutlookBar that is bound to a list of items.  Each of the items contains a list which is bound to a grid.  The grid is in a template that defines the RadOutlookBar's content.  Everything binds fine, but when I select a different RadOutlookBarItem, the grid refreshes, and will throw an exception:

Invalid property or field - '[FieldName]' for type: Object  


In this case, it only happens for one field, and only if I specify the DataFormatString. 

DataFormatString="{}{0:dd/MM/yyyy}" 

As you can see, this field is DateTime type.  If I step through the exceptions, the field will load properly.

Issue #2

This issue is very similar to the above.  We have a RadTabControl that is bound to a list.  The list items also contain lists which are bound to a template that contains a grid.  In this case, the items are different types and so the grids themselves are defined in different DataTemplates targeting their specific DataTypes.  Initially, everything loads just fine, but when you select a different tab, an exception with the same message as issue #1 will be thrown for each column that was defined in the originally selected tab.  This time though, the type is the type of item listed in the newly selected tab's grid.

Invalid property or field - '[FieldName from previous]' for type: [Row data type for selected] 

Again, after stepping through the exceptions, the grid loads just fine.

One tip for reproducing the exceptions if they are not being caught (the code is just throwing exceptions away):
Go to Debug -> Exceptions.. 
Tick the "Thrown" checkbox next to "Common Language Runtime Exceptions".




3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Jun 2010, 07:48 AM
Hi,

 Can you send us small example application (via support ticket) where we can reproduce and debug these exceptions?

Greetings,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Brian Lampe
Top achievements
Rank 1
answered on 24 Jun 2010, 05:15 PM
Tickets have been submitted.
0
Vlad
Telerik team
answered on 25 Jun 2010, 07:50 AM
Hello,

 I've checked both project and I've found that you do not have our latest binaries. Please use Q1 2010 SP2 to fix both problems!

Sincerely yours,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Brian Lampe
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Brian Lampe
Top achievements
Rank 1
Share this question
or