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

Dynamic Columns

3 Answers 640 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Engineer
Top achievements
Rank 1
Engineer asked on 11 Jul 2012, 05:46 AM
I have generate column dynamically in detail sectin of report for this i use cross tab but the problem is that in detail section complete cross tab data is showing means for one row of report multiple rows of cross tab is displaying , i just want show one row of cross tab for each each row of report.
Is there any way to dynamically changing data source of cross tab?so every row of report i have different cross tab data source?
Is there  any other control that will meet my requirement ?

3 Answers, 1 is accepted

Sort by
0
Accepted
Hadib Ahmabi
Top achievements
Rank 1
answered on 12 Jul 2012, 01:39 PM
You can bind the Crosstab.DataSource to use the Fields from the Report.DataSource. 
For e.g. your report has a DataSource Fields: ID, Name, ComplexObject
and you want in each row to bind the crosstab to that CompleObject. Then by using bindigs you can specify the following expression:
Crosstab.DataSource = ReportItem.DataObject.ComlexObject

See Bindings: 
http://www.telerik.com/help/reporting/expressions-bindings.html 
0
Engineer
Top achievements
Rank 1
answered on 19 Jul 2012, 06:09 AM
Thanks for your answer.My current problem is solved by your answer and your example was so much help full for me.But there is one the the cross tab columns are not perfectly in one line. 

And in other i have this problem .The text boxes are in report footer.
http://www.telerik.com/community/forums/reporting/telerik-reporting/565779-textboxes-height.aspx 
0
Steve
Telerik team
answered on 24 Jul 2012, 06:47 AM
Hello,

The Table/CrossTab item would keep all columns and rows in one line and this cannot be changed. You can get misaligned rows/columns only if you use TextBox items to simulate tabular layout. Please revise your report layout/structure and if you're still having problems, it would be best to open a support ticket and provide us with a sample report that exhibits the issue.

Regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Engineer
Top achievements
Rank 1
Answers by
Hadib Ahmabi
Top achievements
Rank 1
Engineer
Top achievements
Rank 1
Steve
Telerik team
Share this question
or