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

Difficulty with inherited properties on data objects

2 Answers 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 06 Sep 2011, 11:16 PM
Hello.

I'm having trouble with a report. The data source is a list of objects, each of which I know to have certain public properties. My textboxes are bound to those properties in the usual way (e.g. "=Fields.Name").

I am getting errors in my report indicating that it could not find the properties for those textboxes, in certain cases. When my data source objects directly implement a public property "Name", all is well and I get data in the textbox bound to the property Name. HOWEVER, if my data objects inherit from another class, which has a public property "Name", then I get those nasty red boxes that say "An error has occurred while processing TextBox 'Name': The expression contains object 'Name' that is not defined in the current context".

Am I correct that the TextBox is not seeing inherited public properties? If so, is there something I can do so that those inherited public properties will show up in my reports?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 08 Sep 2011, 04:11 PM
Hello Mark,

Based on the provided information in our test environment we can bind a TextBox to a base class public property. Check out the attached sample report and data objects and if you still experience any difficulties we will appreciate if you open a support ticket and modify the sample report to illustrate the problematic behavior.

Greetings,
Peter
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Mark
Top achievements
Rank 1
answered on 08 Sep 2011, 04:29 PM
Thanks Peter. It looks like we'll need to dig deeper on our side.
Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Peter
Telerik team
Mark
Top achievements
Rank 1
Share this question
or