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

Details sections are being created, but crosstab is getting no data

1 Answer 100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 08 Jul 2019, 02:08 PM

So, I'm binding a DataSource to LINQ query in the ItemDataBinding event. My detail section is generating a member for each item in this list, but *sometimes* the cross tab in the detail section will be completely blank.

The detail section is getting some data -- I have a textbox in it with =Fields.Name that is properly populating 100% of the time. However, the crosstab binding to =ReportItem.DataObject.Name (and any other information relating to this DataObject) is simply blank.

 

Unsure how to diagnose or proceed. Please help!

1 Answer, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 11 Jul 2019, 08:35 AM
Hi Andrew,

If I understood correctly, you are trying to bind a Crosstab data item to it's parent data. You can achieve this by adding the following binding rule for the crosstab:
Property path: DataSource
Expression: = ReportItem.DataObject

And then, to use =Fields.Name expression inside the crosstab to render the list of names. Please, note that if the crosstab is inside the details section, it would be rendered (with the headers) for every row in the data source. If you want to render one crosstab item that lists all names at once, you would need to move the crosstab in Report Header/Footer or static Group Header/Footer sections. For further reference, check Report Structure article.

If the issue, still persists, we would like to check the report definition. Please send it to us along with some sample data, for example in csv format.

Best Regards,
Silviya
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Share this question
or