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

Auto resize the column headers of the Telerik.Reporting.Table

3 Answers 997 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sridevi
Top achievements
Rank 1
Sridevi asked on 08 Jun 2011, 07:26 AM
Hi All,

how to auotmatically resize the column headers of the report table at runtime? And also each report should not extend to next page. Do we have something like creating a lock in sql server reporting for not letting the report move another page?

thanks in advance....

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 08 Jun 2011, 04:39 PM
Hello Sridevi,

TextBox report item can only grow vertically to fit content and its width is not changed at runtime. If you want to change the width based on the number of columns in a Table and in this way do not allow for the Table to grow on a second page, you should create your Table entirely programmatically on the fly. This way you would know the number of columns and specify the report width accordingly.

Best wishes,
Steve
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
Kuldeep
Top achievements
Rank 1
answered on 31 Aug 2011, 06:33 PM
Hi,

I am also fetching same problem I need to auto re size the column for table in telerik reporting.  Can you please tell me how I can do this with programmatically .

Thanks and Regards!
Kuldeep Dwivedi
0
Peter
Telerik team
answered on 05 Sep 2011, 09:21 PM
Hi Kuldeep,

Telerik Reporting has a powerful API you can use for creating reports programmatically. Generally we highly recommend creating the desired reports through the Report Designer first and then review the code in the InitializeComponent to see the internal structure and use it as a sample for creating reports programmatically. Additionally we have attached a simple wrapper for the Table item. You can also review Programmatic Control of Reports section for more info.

You may find useful our code converter.

All the best,
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 >>

Tags
General Discussions
Asked by
Sridevi
Top achievements
Rank 1
Answers by
Steve
Telerik team
Kuldeep
Top achievements
Rank 1
Peter
Telerik team
Share this question
or